From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <32E044E0.3AF0@ep4.phy.uni-bayreuth.de> Date: Fri, 17 Jan 1997 19:34:56 -0800 From: Martin Pinsker Subject: Re: IP Masq 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