Re: NAT WAN IP to internal range?

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

Thanks Vignesh!

>iptables -t nat -A POSTROUTING -s -o $WANIF -j SNAT --to-source a.b.c.241
>Here I am assuming that is your internal network and you want to allow all the machines. If you want to allow only a few machines, put a comma separated "address[/mask]" list.

Solved it for me... in the end I used:
iptables -t nat -I POSTROUTING -s -o ppp0 -j SNAT
--to-source a.b.c.241
and matched the range to my DHCP leases. (96 to 127)

To unsubscribe from this list: send the line "unsubscribe netfilter" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at

[Linux Netfilter Development]     [Linux Kernel Networking Development]     [Linux Networking Development]     [Linux Kernel Development]     [Linux Resources]     [LARTC]     [Bugtraq]     [Consulting]     [Free Internet Dating]     [Yosemite Forum]     [Photo]

Add to Google Powered by Linux