Results 1 to 2 of 2
Can anyone help me iptables solution for the follwing specification.
I want to drop all packets coming to my host , except for port 1713 .
It doesn't work :
...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 08-19-2004 #1Just Joined!
- Join Date
- Aug 2004
- Posts
- 6
DROP input except for 1713
Can anyone help me iptables solution for the follwing specification.
I want to drop all packets coming to my host , except for port 1713 .
It doesn't work :
iptables -A INPUT -i eth0 -J DROP
iptables -A INPUT -p tcp --dport 1713 -j ACCEPT
- 08-19-2004 #2Linux Newbie
- Join Date
- Jan 2004
- Location
- Belgrade, S&M
- Posts
- 177
You have to put the second rule first:
iptables -A INPUT -p tcp --dport 1713 -j ACCEPT
ptables -A INPUT -i eth0 -J DROP
It is a matter of priority. Otherwise everything will be dropped.


Reply With Quote
