Hi,
I'm new to setting up a iptables firewall. I want to accept e-mail from a certain ip range only.
My rules are:
iptables -A INPUT -s 1.2.3.4/20 -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP
Error Msg:
Applying iptables firewall rules: Bad argument `tcp'
Error occured at line: 9
Any help is appreciated.
Thanks
DJ
I'm new to setting up a iptables firewall. I want to accept e-mail from a certain ip range only.
My rules are:
iptables -A INPUT -s 1.2.3.4/20 -p tcp --dport 25 -j ACCEPT
iptables -A INPUT -p tcp --dport 25 -j DROP
Error Msg:
Applying iptables firewall rules: Bad argument `tcp'
Error occured at line: 9
Any help is appreciated.
Thanks
DJ