week13 實作解答 # Network iptables 1. 接受所有 INPUT 的 udp 封包 2. 將來源為 192.168.2.200 埠口為 20 的 tcp INPUT 封包予以接受 3. 將所有來源為 192.168.1.0 埠口為 1024 到 65535 且想要連線到本機的 ssh port 的封包予以阻擋 4. 將剩下的封包全部丟棄。 ```bash # 1. iptables -t filter -A INPUT -j ACCEPT # 2. iptables -t filter -A INPUT -s 192.168.2.200 --sport 20 -j ACCEPT #3. iptables -t filter -A INPUT -p tcp -s 192.168.1.0 --sport 1024:65535 --dport ssh -j DROP #4. iptables -t filter -A INPUT -j DROP ``` 本週進度: 準備教材
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up