Re: Masquerading with optional external ip

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

 



On Wednesday 05 November 2003 9:52 pm, Patrick Ahler wrote:

> I currently have a working masquerade rule for my firewall :
>
> iptables -t nat -A POSTROUTING -s 192.168.1.192/25 -o eth1 -j MASQUERADE
>
> Any IP in the 192.168.1.192/25 range masquerades as the firewall's
> external IP (a.b.c.d). I would like to specify that it runs on another
> ip (a.b.c.x), is this possible? If so how must I change my current rule?

iptables -A POSTROUTING -t nat -s 192.168.1.192/25 -o eth1 -j SNAT --to 
a.b.c.x

Antony.

-- 

How should I know if it works?   That's what beta testers are for.   I only 
coded it.

 - Linus Torvalds
                                                     Please reply to the list;
                                                           please don't CC me.


[Index of Archives]     [Linux Netfilter Development]     [Linux Kernel Networking Development]     [Netem]     [Berkeley Packet Filter]     [Linux Kernel Development]     [Advanced Routing & Traffice Control]     [Bugtraq]

  Powered by Linux