Howdy from Texas -
I am trying to set up a masquerading firewall. I have done this before
with no real problems, but I am doing something a little weird at a
customer's request. It has a legal address assigned by the ISP, and
they want me to assign a private address for ipmasq to the same NIC, so
the same physical interface is configured for the public and the private
network.
In rc.inet1 I am doing
/sbin/ifconfig eth0 201.20.99.2 broadcast 201.20.99.255 netmask
255.255.255.0
/sbin/ifconfig eth0:0 192.168.200.1 broadcast 192.168.200.255 netmask
255.255.255.0
/sbin/route add default gw 201.20.99.1 netmask 0.0.0.0 metric 1
/sbin/route add -net 192.168.200.0 gw 192.168.200.1
In a file I created called rc.masq I am doing
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_cuseeme.o
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_ftp.o
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_irc.o
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_quake.o
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_raudio.o
/sbin/modprobe /lib/modules/2.0.36/ipv4/ip_masq_vdolive.o
/sbin/ipfwadm -F -p accept
/sbin/ipfwadm -F -f
/sbin/ipfwadm -I -f
/sbin/ipfwadm -O -f
/sbin/ipfwadm -F -a m -S 192.168.200.0/24 -D 0.0.0.0/0
I know, I have not yet locked down the firewalling portion, I just want
to get connectivity squared away before I start shutting services down.
I am getting kind of weird results, like _intermittent_ ability to get
out to the Internet from within the private network, especially from
folks dialing in to the >cringe< WinNT RAS server.
I am running Slackware 3.6, kernel 2.0.36, and an Intel Ether Express
Pro 100b. Is this just not a good thing to do, running two logical
networks on one physical interface? I am starting to believe it is not,
but I was just looking for anyone who had any input.
If convenient, please respond via e-mail as well as post.
Thanks!