Changes between Version 28 and Version 29 of Csle2022/Agenda/FW
- Timestamp:
- Nov 29, 2022, 9:21:14 PM (2 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Csle2022/Agenda/FW
v28 v29 171 171 172 172 '''Example:-'''[[BR]] 173 Let’s say we want to keep our SSH port open (we will assume in this guide that the default SSH port is 22) from the 192.168.1. 3 network we blocked in the above case. That is we only want to allow those packets coming from 192.168.1.3and which wants to go to the port 22.174 {{{ 175 sudo iptables -A INPUT -s 192.168.1. 3-p tcp --dport 22 -j ACCEPT173 Let’s say we want to keep our SSH port open (we will assume in this guide that the default SSH port is 22) from the 192.168.1.4 network we blocked in the above case. That is we only want to allow those packets coming from 192.168.1.4 and which wants to go to the port 22. 174 {{{ 175 sudo iptables -A INPUT -s 192.168.1.4 -p tcp --dport 22 -j ACCEPT 176 176 }}} 177 177