* Re: IP Masq
@ 1997-01-18 3:34 Martin Pinsker
0 siblings, 0 replies; 3+ messages in thread
From: Martin Pinsker @ 1997-01-18 3:34 UTC (permalink / 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
^ permalink raw reply [flat|nested] 3+ messages in thread
* IP Masq
@ 1997-01-15 23:26 Adam Biskobing
0 siblings, 0 replies; 3+ messages in thread
From: Adam Biskobing @ 1997-01-15 23:26 UTC (permalink / raw)
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?
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
[parent not found: <01BC0309.36389C80@win95.outer.net>]
* Re: IP Masq
[not found] <01BC0309.36389C80@win95.outer.net>
@ 1997-01-15 23:25 ` David Rudder
0 siblings, 0 replies; 3+ messages in thread
From: David Rudder @ 1997-01-15 23:25 UTC (permalink / 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?
It should be. IP Masquerading will only kick in for the addresses you
specify. So, keep the fake addresses of the machines you want to
masquerade different from the valid IPs. You should probably use the
addresses that were reserved for this use. I forget most of the, but the
10.*.*.* A class should provide you with enough addresses :)
>
> --
> 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
>
>
-Dave
drudder@novitacom.com
Least Favorite Acronym: ASAP
Favorite Acronym: GNU
--
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
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~1997-01-18 3:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1997-01-18 3:34 IP Masq Martin Pinsker
-- strict thread matches above, loose matches on Subject: below --
1997-01-15 23:26 Adam Biskobing
[not found] <01BC0309.36389C80@win95.outer.net>
1997-01-15 23:25 ` David Rudder
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox