Masquerading for static IPs

Harald Welte laforge@gnumonks.org
Wed, 20 Sep 2000 00:13:37 +0200


On Mon, Sep 18, 2000 at 01:12:44AM -0500, Brent Eckhout wrote:
> Mr. Russell--
> 
> Do you have any examples for masquerading static IPs (usually for the
> cable modem users)?  I read the section on source NAT (SNAT).  I believe
> this is what I want to use to masquerade my internal network
> (192.168.1.0) from my static internet IP.  Sorry, I'm just a little
> confused.  It looks the first example under the Source NAT section would
> work but I'm just having some trouble with it on Caldera LTP box.

You just have te usual case of snat. I don't know caldera, and I don't
know what probles You have with that. But it is almost certainly not a 
netfilter issue.

iptables -t nat -A POSTROUTING -j SNAT --to my.static.ip -s 192.168.1.0/24

> Thanks,
> Brent Eckhout

-- 
Live long and prosper
- Harald Welte / laforge@gnumonks.org                http://www.gnumonks.org
============================================================================
GCS/E/IT d- s-: a-- C+++ UL++++$ P+++ L++++$ E--- W- N++ o? K- w--- O- M- 
V-- PS+ PE-- Y+ PGP++ t++ 5-- !X !R tv-- b+++ DI? !D G+ e* h+ r% y+(*)