From: Martin Pinsker <Martin.Pinsker@btp8x5.phy.uni-bayreuth.de>
Subject: Re: IP Masq
Date: Fri, 17 Jan 1997 19:34:56 -0800 [thread overview]
Message-ID: <32E044E0.3AF0@ep4.phy.uni-bayreuth.de> (raw)
On Wed, 15 Jan 1997, Adam Biskobing wrote:
> I know this is not the right place to post this, but I am interested
> in setting up IP Masqerade for a few IP's but also have the machine
> running IP Masq act as a gateway for some "real" ip's, is this possible?
Yes, it is. I have a linux-box that routes packets for two PCs with
'real'
IP-adresses (say 111.111.111.1 and 111.111.111.2) and masquerades
packets
for complete subnet of hosts (say 192.168.1.x).
To set this up, I had to (of course) turn on IP-masquerading,
IP-forwarding/
gatewaying and IP-firewalling in the kernel, and afterwards enter some
ipfwadm-commands (best put them into a startup-script):
ipfwadm -F -f
ipfwadm -O -f
ipfwadm -I -f
ipfwadm -F -p deny
ipfwadm -F -i masquerade -S 192.168.1.0/24 -D 0.0.0.0/0
ipfwadm -F -i accept -S 111.111.111.1 -D 0.0.0.0/0 -b
ipfwadm -F -i accept -S 111.111.111.2 -D 0.0.0.0/0 -b
ipfwadm -O -p accept
ipfwadm -I -p accept
To make ftp and irc work, one has to start two additional modules:
modprobe ip_masq_ftp
modprobe ip_masq_irc
If you have a complete subnet of 'real' IP-adresses to route
(111.111.111.x)
then you can of course reduce the two ipfwadm -F -i accept ... commands
to
one ipfwadm -F -i accept -S 111.111.111.0/24 -D 0.0.0.0/0 -b.
Greetings
Martin
--
To unsubscribe: send e-mail to axp-list-request@redhat.com with
'unsubscribe' as the subject. Do not send it to axp-list@redhat.com
next reply other threads:[~1997-01-18 3:34 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
1997-01-18 3:34 Martin Pinsker [this message]
-- strict thread matches above, loose matches on Subject: below --
1997-01-15 23:26 IP Masq Adam Biskobing
[not found] <01BC0309.36389C80@win95.outer.net>
1997-01-15 23:25 ` David Rudder
read-only archive
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox