Hi, I know I can set SNAT on masq file, but I only want outgoing SMTP traffic to use a specific address, is it possible? If yes, how? Thanks, Martin Chan
On Mon, 7 Apr 2003, Martin Chan wrote:> Hi, > > I know I can set SNAT on masq file, but I only want outgoing SMTP traffic > to use a specific address, is it possible? If yes, how? >In /etc/shorewall/init: run_iptables -I POSTROUTING -o <external if> --dport 25 -j SNAT \ --to-source <source ip> -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
On Mon, 7 Apr 2003, Tom Eastep wrote:> > In /etc/shorewall/init: > > run_iptables -I POSTROUTING -o <external if> --dport 25 -j SNAT \ > --to-source <source ip> >Duh -- let me try that again: In /etc/shorewall/start: run_iptables -t nat -I POSTROUTING -o <external if> -p tcp --dport 25 \ -j SNAT --to-source <source ip> -Tom -- Tom Eastep \ Shorewall - iptables made easy Shoreline, \ http://www.shorewall.net Washington USA \ teastep@shorewall.net
Tom, It works great, Thanks. Martin Chan Tom Eastep wrote:>On Mon, 7 Apr 2003, Tom Eastep wrote: > > > >>In /etc/shorewall/init: >> >>run_iptables -I POSTROUTING -o <external if> --dport 25 -j SNAT \ >>--to-source <source ip> >> >> >> > >Duh -- let me try that again: > >In /etc/shorewall/start: > >run_iptables -t nat -I POSTROUTING -o <external if> -p tcp --dport 25 \ > -j SNAT --to-source <source ip> > >-Tom > >