Hello!
I have an IP masquerading problem here, and any help with it is greatly
appreciated.
Setup:
The Linux box (Slackware 3.4/kernel 2.0.33) is connected to a cable modem
for the Internet connection, and also connected to a local network. So it
has 2 Ethernet cards, one for the cable modem, and one for the local area
network. My setup uses DHCP to get the IP address and host information
from my ISP (Road Runner San Diego). So I am using the dhcpcd client on
the Linux computer. I got the normal IP masquerading to work fine, the
computers on the network can get to the Internet like they're supposed to.
Problem:
I need to use the IP autoforwarding feature to make some programs
work. I have it compiled into the kernel and got the executable that you
download. Here is a script I use to set all the autoforwarding
policies:
# autofw-setup: script to initialize autoforwarding junk.# Flush it!
ipautofw -F# Diablo (Battle.Net)
ipautofw -A -r udp 6112 6112 -c tcp 116 -u -v
ipautofw -A -r udp 6112 6112 -c tcp 118 -u -v# Mplayer
ipautofw -A -r tcp 8000 8999 -v -h 10.0.0.2
ipautofw -A -r udp 8000 8999 -v -h 10.0.0.0# Microsoft DirectPlay
ipautofw -A -r tcp 1500 5000 -v -h 10.0.0.2
ipautofw -A -r tcp 47624 47624 -v -h 10.0.0.2
ipautofw -A -r udp 47624 47624 -v -h 10.0.0.2
ipautofw -A -r udp 1095 3210 -v -h 10.0.0.2
ipautofw -A -r udp 3220 5000 -v -h 10.0.0.2# Age of Empires
ipautofw -A -r upd 1410 1450 -h 10.0.0.2 -v
ipautofw -A -r tcp 1410 1450 -h 10.0.0.2 -v# Speak Freely
ipautofw -A -r udp 2074 2075 -c udp 2075 -v# End of autofw-setup script.
This works fine, and I can use the programs specified in the script from
the computers behind the Linux gateway.
The problem is that after I run this script, I cannot use the Linux
computer to get anything from the Internet (using Lynx or any other web
browser). However, I can ping and traceroute anything on the Internet,
using domain name (like www.linux.org) or an
IP number (like 131.107.75.32). The strange thing is that the computers on
the local network behind the Linux box can get web pages from the
Internet. They can do everything normally. The reason I would like
the Linux computer to be able to get web pages for itself is because I am
running the Squid proxy caching server on
it. When Squid is running, the other computers cannot get web pages using
the Squid proxy cache. If I disable the use of the proxy server on the
other computers (which are running Windows 95) by changing the Internet Explorer
properties, it can work normally like I said before. I know that the Squid
is not causing the problem because it still has the problem even when Squid
isn't running.
If I do the command "ipautofw -F", everything returns to normal
and I can use the Squid cache and the Linux computer can get web pages.
So, is this a bug with the IP autoforwarding stuff, or am I doing something
wrong? Any help is greatly appreciated.
Thanks!
--
Kenyon RalphSan Diego, CA, USA
[EMAIL PROTECTED]
http://home.san.rr.com/ralphs
ICQ: 8552071
