IP&Masquerade&PPP_not_official_in_lan

IP&Masquerade&PPP_not_official_in_lan

Post by Daniel Sidnei dos Santo » Sun, 07 Dec 1997 04:00:00



- I need some help !
- I like access my LAN by PPP !
  In this way the linux2 (ppp0 200.200.200.10) can access the lan1 by
  eth0:0,
  without routes in lan1 for linux2 (this is spuffing)  !
- Can I masquerade ppp0 for lan, in following case ?

  ----------thelefone--------------
  |                                             |
ppp0:                    ppp0
200.200.200.1    200.200.200.10

  |                                              |
linux1                                    linux2
  |  eth0    172.16.16.3
  |  eth0:0 172.16.16.9

  |
------------------------
lan 1

I have:
1. Kernel and config ok for masquerade !
2. The connection from linux1 and linux2 are ok and work !
3. The connection from linux1 and lan1 are ok and work !

I do not have:
4. The connection from linux2 and lan1 is not ok and not work !
I would like access from linux1 in any host's in lan1 how local host !
But it is not working in this moment !
- My rc.firewall, I write:
ipfwadm -I -f
ipfwadm -I -p deny
ipfwadm -I -a accept -V 127.0.0.1 -S 0.0.0.0/0 -D 0.0.0.0/0
ipfwadm -I -a accept -V 200.200.200.1 -S 200.200.200.10/32 -D 0.0.0.0/0
ipfwadm -O -f
ipfwadm -O -p deny
ipfwadm -O -a accept -V 127.0.0.1 -S 0.0.0.0/0 -D 0.0.0.0/0
ipfwadm -O -a accept -V 200.200.200.1 -S 0.0.0.0/0 -D 172.0.0.0/24
ipfwadm -F -f
ipfwadm -F -p deny
ipfwadm -F -a masquerade -W eth0:0 -S 200.200.200.10/32 -D 0.0.0.0/0

- My rc.firewall is ok ?
- I need add some routes ?
- Thanks for any tips !!!!!!!