Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

iptables error msg

Status
Not open for further replies.

dj2005

Technical User
Jan 13, 2005
1
CA
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
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top