[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: debian-firewall: how do I let SMTP through with ipmasq ??



Thanks for taking the time to answer my questions.  Tamas suggests the portfw
module which seems to make sense.  I thought that was what "ipchains -A forward"
did but obviously it is a little different.

"ipmasqadm portfw" gives me the following syntax.
Usage: portfw -a -P PROTO -L LADDR LPORT -R RADDR RPORT [-p PREF]

Does xADDR need the netmask like IPCHAINS ? (eg. a.b.c.d/32 or
a.b.c.d/255.255.255.0)
Can xPORT be a port range (eg. 1000:1100) ?

I assume I can redirect mail from  a.b.c.d:25 to 192.168.0.5:25 with the
following command.
"ipmasqadm portfw -a P tcp -L a.b.c.d 25 -R 192.168.0.5 25"
Is this correct ?

Do I need to put this in a /etc/ipmasq/rules/.rul file somewhere (where ?) or is
the /etc/ipmasq/modules file the place for it ?
Will an entry of "portfw -a P tcp -L a.b.c.d 25 -R 192.168.0.5 25" in the modules
file do the trick ?

Thanks,
Brendan Simon.



--  
To UNSUBSCRIBE, email to debian-firewall-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org


Reply to: