/* HINT: Search archives @ http://www.indyramp.com/masq/ before posting! */
Greetings from Jiyugaoka, Tokyo.
I am trying to setup ip masquerading
with a two computer ethernet network:
a Linux box (2.2.10 kernel, Turbolinux)
and a Mac 7100/66av running MacOS 8.6 .
The Linux box connects to a dialup
account via ppp.
I seem to be getting pretty close, but
still no cigar. The two computers can
ping each other and the Mac user can
telnet into the Linux box from where
she can use lynx to browse the web.
However, the Mac user cannot ping
the outside world, nor does ftp and
Netscape to the outside world work.
I've been through the documentation
on this and will continue to search
for the answer. However, if something
is obviously wrong, I would appreciate
it if you would point it out. Sorry
for the elementary nature of this post.
The Linux box's IP address is 192.168.1.1
Net Mask 255.255.255.0
Network Addr 192.168.1.0
Broadcast Addr 192.168.1.255
The Mac's IP address is 192.168.1.200 .
Net Mask is the same as above
and the Router Address is the Linux box's IP address.
Nameservers are the same as those of the Linux box.
Search domain is the same as the Linux box (gol.com).
There is no 'host file' (translating from the Japanese;
I think it's the same in English).
I am have installed ipchains (1.3.4-3).
"cat /proc/sys/net/ipv4/ip_forward" gives "1".
netstat -r run when connected to with ppp
gives:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
harc1-2-shinjuk * 255.255.255.255 UH 0 0 0 ppp0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
default harc1-2-shinjuk 0.0.0.0 UG 0 0 0 ppp0
/sbin/lsmod gives:
Module Size Used by
ip_masq_vdolive 1072 0 (unused)
ip_masq_cuseeme 816 0 (unused)
ip_masq_irc 1520 0 (unused)
ip_masq_raudio 2736 0 (unused)
ip_masq_ftp 2352 0 (unused)
pcnet_cs 7828 1
8390 6112 0 [pcnet_cs]
ds 5900 2 [pcnet_cs]
i82365 23408 2
pcmcia_core 41352 0 [pcnet_cs ds i82365]
nls_cp936 102620 1 (autoclean)
nls_cp437 3548 1 (autoclean)
/etc/rc.d/rc.local has this in it:
if [ -f /etc/rc.d/rc.ipfwadm ]; then /etc/rc.d/rc.ipfwadm; fi;
(I had installed ipfwadm earlier; there is no rc.firewall).
/etc/rc.d/rc.ipfwadm has this in it:
/sbin/depmod -a
/sbin/modprobe ip_masq_ftp
/sbin/modprobe ip_masq_raudio
/sbin/modprobe ip_masq_irc
/sbin/modprobe ip_masq_cuseeme
/sbin/modprobe ip_masq_vdolive
echo "1" > /proc/sys/net/ipv4/ip_forward
echo "1" > /proc/sys/net/ipv4/ip_dynaddr
/sbin/ipchains -M -S 7200 10 160
/sbin/ipchains -P forward DENY
/sbin/ipchains -A forward -j MASQ -s 192.168.1.0/255.255.255.0 -d 0.0.0.0/0 -i e
th0
I reconfigured the kernel to include all the elements needed
for ip masquerade.
I would appreciate your advice!
Thank you in advance.
_______________________________________________
Masq maillist - [EMAIL PROTECTED]
Admin requests can be handled at http://www.indyramp.com/masq-list/
or email to [EMAIL PROTECTED]
PLEASE read the HOWTO and search the archives before posting.
You can start your search at http://www.indyramp.com/masq/
Please keep general linux/unix/pc/internet questions off the list.