Hi,

First a little background:
Linux 2.0.34
I've set up a Linux PPP server and I'm able to attach to the network w/out
any problems and everything is viewable (Win95, WinNT, Samba Servers,
AS/400's), but the problem I'm having is that the maching I'm dialing in
from gets a static IP and is being masq'd and I don't think it should be,
therefore when I telent to my AS/400 it's giving me the IP address of the
Linux PPP server and not the IP address of the client dialing in.  I had a
similar problem with my main box with access to the Internet and set up
the following: 
/sbin/ipfwadm -F -a accept -b -S 192.168.200.0/255.255.255.0 -D 
192.168.100.0/255.255.255.0
Which seem to take care of it, although I'm not sure that this was the
best solution.

Ok, here's the relevant information:
rc.inet1
========
/sbin/ifconfig eth0 208.15.109.37 broadcast 208.15.109.47 netmask
255.255.255.240 

/sbin/route add -net 208.15.109.32 netmask 255.255.255.240
/sbin/route add default gw 208.15.109.47 netmask 0.0.0.0 metric 1

rc.alias
========
/sbin/ifconfig eth0:0 192.168.100.5 netmask 255.255.255.0 up
/sbin/ifconfig eth0:0 192.168.200.4 netmask 255.255.255.0 up

/sbin/route add -net 192.168.100.0 netmask 255.255.255.0 dev eth0:0
/sbin/route add -net 192.168.200.0 netmask 255.255.255.0 dev eth0:1

rc.masq
=======
/sbin/ipfwadm -F -f
/sbin/ipfwadm -F -a accept -b -S 192.168.200.0/255.255.255.0 -D 
192.168.100.0/255.255.255.0
/sbin/ipfwadm -F -a m -S 192.168.200.9/255.255.255.255 -D 0.0.0.0/0

I have the client box dialing in and establishing a connection with an IP
address of 192.168.200.9 and a gw of 192.168.200.4

I can access the internet and all machines on the internal networks
(192.168.100.0 and 192.168.200.0), but when I go from the client machine
to say the AS/400 (192.168.100.2 or 192.168.200.150) the AS/400 shows that
I'm connecting from the PPP server.

Is it the routes that are messed up, or is there something more that I can
do using ipfwadm to keep this from happening?

I'm not sure if my other Linux server (the one that does all the routing
to and from the Internet) is part of my problem or not.  I'm sure it is to
a certain degree, but the machines for the most part are set up identical.

I would really appreciate any and all help or guidance, it's really
starting to limit what I can do the way it's functioning now....

Best Regards,
Tim

--
[EMAIL PROTECTED]
[EMAIL PROTECTED] (Home)
[EMAIL PROTECTED] (Work)
                                D I P C
   The system that enables you to write distributed programs.......the
   easy way!
                        http://wallybox.cei.net/dipc/

-
To unsubscribe from this list: send the line "unsubscribe linux-net" in
the body of a message to [EMAIL PROTECTED]

Reply via email to