Help with IP forw, route, PPP problem.

Help with IP forw, route, PPP problem.

Post by Hemant Sha » Sat, 05 Sep 1998 04:00:00



Folks,

   We have built a firewall on a linux system with two Adaptec quad
   ethernet cards. I have setup firewall rules properly for all the
   ethernet interfaces, but I am having problem with PPP connection.

   We have client that has an AIX system, and will be dialing in to the
   firewall. I am able to make PPP connection using CHAP authentication,
   but after that I cannot connect to either of the systems.

                   +---------+
   internet (eth0) |         |
   intranet (eth1) | Linux   | (ppp0) client_3
   client_1 (eth2) | RH 5.1  |
   client_2 (eth3) |         |
                   +---------+

   eth4 through eth7 are not configured.

   Intranet is 192.9.100.0 network and ppp0 is 10.8.1.0 network.

   My PPP address is 10.8.1.1 and the client's PPP address is 10.8.1.2

   I am trying to setup forwarding rules so that a system
   (192.9.100.101) and talk to client system, with traffic allowed both
   ways. Right now I cannot even talk to the otherside of PPP connection.

   I have shutdown all interfaces except eth1, and also shutdown
   firewall.

   Here are some of the details.

<aix>/>  netstat -r
Route Tree for Protocol Family 2:
10.8.1.1         10.8.1.2          UH        1      409   -   pp1   -
     .
     .
     .
     .

<aix>/>  ping 10.8.1.1
PING 10.8.1.1: (10.8.1.1): 56 data bytes


IP firewall forward rules, default policy: deny
type  prot source               destination          ports
acc   all  anywhere             anywhere             n/a

<linux>/root 25> ipfwadm -O -l
IP firewall output rules, default policy: deny
type  prot source               destination          ports
acc   all  anywhere             anywhere             n/a


IP firewall input rules, default policy: deny
type  prot source               destination          ports
acc   all  anywhere             anywhere             n/a

<linux>/root> ifconfig
lo        Link encap:Local Loopback
          inet addr:127.0.0.1  Bcast:127.255.255.255  Mask:255.0.0.0
          UP BROADCAST LOOPBACK RUNNING  MTU:3584  Metric:1
          RX packets:40 errors:0 dropped:0 overruns:0
          TX packets:40 errors:0 dropped:0 overruns:0

eth1      Link encap:Ethernet  HWaddr 00:00:92:A7:DF:05
          inet addr:192.9.100.120  Bcast:192.9.100.255  Mask:255.255.255.0
          UP BROADCAST RUNNING MULTICAST  MTU:1500  Metric:1
          RX packets:1157 errors:0 dropped:0 overruns:0
          TX packets:601 errors:0 dropped:0 overruns:0
          Interrupt:9 Base address:0xb400

ppp0      Link encap:Point-to-Point Protocol
          inet addr:10.1.8.1  P-t-P:10.8.1.2  Mask:255.255.255.0
          UP POINTOPOINT RUNNING  MTU:296  Metric:1
          RX packets:214 errors:0 dropped:0 overruns:0
          TX packets:146 errors:0 dropped:0 overruns:0

<linux>/root> netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.8.1.2        *               255.255.255.255 UH      296 0          0 ppp0
127.0.0.0       *               255.0.0.0       U      3584 0          0 lo
default         *               0.0.0.0         U      1500 0          0 eth1

<linux>/root 7> tcpdump -i ppp0
tcpdump: listening on ppp0
09:49:38.596508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:49:38.596508 lidp16 > 10.8.1.2: icmp: host 10.8.1.1 unreachable [tos 0xc0]
09:49:39.576508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:49:39.576508 lidp16 > 10.8.1.2: icmp: host 10.8.1.1 unreachable [tos 0xc0]
09:49:40.576508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:49:40.576508 lidp16 > 10.8.1.2: icmp: host 10.8.1.1 unreachable [tos 0xc0]
09:49:41.596508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:49:41.596508 lidp16 > 10.8.1.2: icmp: host 10.8.1.1 unreachable [tos 0xc0]
09:49:42.596508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:49:42.596508 lidp16 > 10.8.1.2: icmp: host 10.8.1.1 unreachable [tos 0xc0]

<linux>/root 19> route del 10.8.1.2

<linux>/root 20> route add -host 10.8.1.2 gw 10.8.1.1

<linux>/root 21> netstat -r
Kernel IP routing table
Destination     Gateway         Genmask         Flags   MSS Window  irtt Iface
10.8.1.2        10.8.1.1        255.255.255.255 UGH    1500 0          0 eth1
127.0.0.0       *               255.0.0.0       U      3584 0          0 lo
default         *               0.0.0.0         U      1500 0          0 eth1

<linux>/root 22> tcpdump -i ppp0
tcpdump: listening on ppp0
09:53:54.426508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:53:55.426508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:53:56.426508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:53:57.426508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:53:58.406508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:53:59.406508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:54:00.406508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:54:01.406508 10.8.1.2 > 10.8.1.1: icmp: echo request
09:54:02.406508 10.8.1.2 > 10.8.1.1: icmp: echo request

To reply, please remove no_junk_mail from my e-mail address.
--
Hemant Shah, LIDP Inc.                /-------------------\    ^~~~~^
 Voice: +1 630 960 0133 x 664         |TECHNOLOGY         |    |    |
   Fax: +1 630 960 0717               |No place for wimps |   o|-OO-|o

                                      \-------------------/    |    |
-----------------[DO NOT SEND UNSOLICITED BULK E-MAIL]------------------
I haven't lost my mind,                Above opinions are mine only.
it's backed up on tape somewhere.      Others can have their own.

 
 
 

Help with IP forw, route, PPP problem.

Post by Emil Gla » Sat, 19 Dec 1998 04:00:00


Try the proxyarp option on the pppd commandline.  I'm not sure your
even getting to the point where you need to look at the firewall
setup.

Emil

 
 
 

1. Routing between a reserved PPP IP and ethernet IP on an ultra

Hi,

Sorry about the confusing subject field.

I was just wondering - if I had some sort of PPP setup on my ultra -
whereby I dialed into a modem connected to my U10 at work - and used a
reserved IP address for the PPP connection (ie 192.168.1.1 for
example) and that the U10 was connecte to our Lan which is connected
to the NET - what sort of routing I would have to set up on the U10
PPP server to enable this.

Erm not very clear explanation ...let me try again.

U10 with modem on serial port

I dial in from home and make a PPP connection on a reserved IP adr

the U10 is Lan connected to the Net via our internal routers

can i setup routing on the U10 to piggyback my dialup session without
using up a non reserved  IP addr on the U10?

Thanks
Shin

2. Starting Apache on boot - question

3. Help Interal routing, IP Masq, PPP

4. Login manager customization question

5. Help with IP and PPP routing

6. "find" and exclusion of multiple directories

7. PPP: Problem with route and gateways with a dynamic IP dial up to an ISP

8. XF86Config for HP D2807A Monitor?

9. RH 5.1 ip forwarding, routing, ppp problem

10. pppd: /etc/ppp/ip-up /etc/ppp/ip-down: Exec format error

11. Help regarding IP Masking and Routing problems.

12. Help with IP Routing Problem!

13. IP Routing problem... Need expert help...