iptables

fjafferi

New member
Joined
Oct 15, 2007
Messages
2
Alright guys i needs some help here, call me a newbie when it comes to iptables... so here's what i am trying to accomplish:


Trying to set up the server to not accept incoming port 25 connections from any network except these two ranges of ip addresses:

208.123.79.0/24 and 64.18.0.0/20



Thanks in advance!
 
iptables -A INPUT -j ALLOW --dest-port 25 --source ip-address-here
iptables -A INPUT -j ALLOW --dest-port 25 --source ip-address-here
iptables -A INPUT -j DROP --dest-port 25


Dont smack me too much if I did it wrong I have no linux boxes :P
 
Back
Top