Re: firewall problem

Linux Advanced Routing and Traffic Control

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

 



On Tue, 14 Mar 2006 12:18:57 +0200
"Erez D" <erez0001@xxxxxxxxx> wrote:

> snat not working

Yes it is. Not the way you want, but it is!!

> 
> my local ip is aaa.aaa.aaa.aaa
> asterisk sitting on the internet at ip bbb.bbb.bbb.bbb
> my firewall's internal ip is 192.168.0.254

> 
> i did snat:
> 
> iptables -t nat -A POSTROUTING -o ppp0 -j SNAT --to aaa.aaa.aaa


You must SNAT wit the EXTERNAL IP of you router not the internal one to achieve
the effect you want.

And since you are unsing ppp, I advise you to use MASQUERADE instead SNAT.

Regards

-- 

Ethy H. Brito         /"\
InterNexo Ltda.       \ /  CAMPANHA DA FITA ASCII - CONTRA MAIL HTML
+55 (12) 3941-6860     X   ASCII RIBBON CAMPAIGN - AGAINST HTML MAIL
S.J.Campos - Brasil   / \ 
_______________________________________________
LARTC mailing list
LARTC@xxxxxxxxxxxxxxx
http://mailman.ds9a.nl/cgi-bin/mailman/listinfo/lartc

[Index of Archives]     [LARTC Home Page]     [Netfilter]     [Netfilter Development]     [Network Development]     [Bugtraq]     [GCC Help]     [Yosemite News]     [Linux Kernel]     [Fedora Users]
  Powered by Linux