Linksys WRT160N v1 PPPoE problem

Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware
Author Message
larry_m
DD-WRT Novice


Joined: 12 Nov 2008
Posts: 3

PostPosted: Wed Nov 12, 2008 21:31    Post subject: Linksys WRT160N v1 PPPoE problem Reply with quote
I have the following problem with my Linksys WRT160N v1 router. I'am trying to connect to my ISP using PPPoE. Everything is configured, but the machine behind the router cant connect to the internet. I tried with different firmware versions [1] but with no success. I managed to capture with tcpdump [2] some of the packets. It seems that the packets from the machine behind the router get to the internet but when the requests are returned to the client through the router, they get dropped.
So in summary:
The pppoe connection between router and internet work fine and connection between the client and the router work fine too.
Connection between client and internet doesn't work.
Other router with same settings works fine.

[1] current dd-wrt version: dd-wrt.v24_mini_generic
Linux version 2.4.35 (root@dd-wrt) (gcc version 3.4.6 (OpenWrt-2.0)) #2088 Sat May 24 13:33:41 CEST 2008
Release: 05/24/08 (SVN revision: 9526)

[2] tcpdump on ppp0 interface
Code:
IP wrt160n-pppoe-address > internet-host00: icmp 64: echo request seq 33
IP internet-host00 > wrt160n-pppoe-address: icmp 64: echo reply seq 33
IP wrt160n-pppoe-address > internet-host00: icmp 92: time exceeded in-transit
IP internet-host01 > wrt160n-pppoe-address: icmp 64: echo reply seq 2782
IP wrt160n-pppoe-address > internet-host01: icmp 92: time exceeded in-transit
IP wrt160n-pppoe-address > isp-pppoe-gateway: icmp 64: echo request seq 2795
IP wrt160n-pppoe-address > internet-host02: icmp 64: echo request seq 2789
IP internet-host02 > wrt160n-pppoe-address: icmp 64: echo reply seq 2789
IP wrt160n-pppoe-address > internet-host02: icmp 92: time exceeded in-transit
IP isp-pppoe-gateway > wrt160n-pppoe-address: icmp 64: echo reply seq 2795
IP wrt160n-pppoe-address > isp-pppoe-gateway: icmp 92: time exceeded in-transit
IP wrt160n-pppoe-address > internet-host01: icmp 64: echo request seq 2783
IP internet-host01 > wrt160n-pppoe-address: icmp 64: echo reply seq 2783
IP wrt160n-pppoe-address > internet-host01: icmp 92: time exceeded in-transit
IP wrt160n-pppoe-address > internet-host02: icmp 64: echo request seq 2790
IP wrt160n-pppoe-address > isp-pppoe-gateway: icmp 64: echo request seq 2796


tcpdump on eth1 interface wan port
Code:

PPPoE  [ses 0x6] IP wrt160n-pppoe-address > internet-host01: icmp 64: echo request seq 387
PPPoE  [ses 0x6] IP internet-host01 > wrt160n-pppoe-address: icmp 64: echo reply seq 387
PPPoE  [ses 0x6] IP wrt160n-pppoe-address > internet-host01: icmp 92: time exceeded in-transit


tcpdump on br0
Code:

IP internal-host-client > internet-host00: icmp 64: echo request seq 532
IP internal-host-client > internet-host01: icmp 64: echo request seq 501



root@DD-WRT:~# iptables -L -t nat -nvx
Code:

Chain PREROUTING (policy ACCEPT 293 packets, 22437 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
      79     5056 DNAT       tcp  --  *      *       0.0.0.0/0            wrt160n-pppoe-ip-addr      tcp dpt:8080 to:192.168.1.1:80
       1       64 DNAT       tcp  --  *      *       0.0.0.0/0            wrt160n-pppoe-ip-addr      tcp dpt:22 to:192.168.1.1:22
     136    11424 DNAT       icmp --  *      *       0.0.0.0/0            wrt160n-pppoe-ip-addr      to:192.168.1.1
       5      242 TRIGGER    0    --  *      *       0.0.0.0/0            wrt160n-pppoe-ip-addr      TRIGGER type:dnat match:0 relate:0

Chain POSTROUTING (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         
     196    15482 MASQUERADE  0    --  *      ppp0    0.0.0.0/0            0.0.0.0/0           
       0        0 RETURN     0    --  *      br0     0.0.0.0/0            0.0.0.0/0           PKTTYPE = broadcast
       0        0 MASQUERADE  0    --  *      br0     192.168.1.0/24       192.168.1.0/24     

Chain OUTPUT (policy ACCEPT 0 packets, 0 bytes)
    pkts      bytes target     prot opt in     out     source               destination         


Any suggestions? Thanks in advance!
Sponsor
mkk
DD-WRT Novice


Joined: 11 Nov 2008
Posts: 9
Location: Hong Kong PRC

PostPosted: Sun Nov 16, 2008 19:42    Post subject: PPPoE relay Reply with quote
Have you turned on PPPoE relay fuction ?
mkk
DD-WRT Novice


Joined: 11 Nov 2008
Posts: 9
Location: Hong Kong PRC

PostPosted: Sun Nov 16, 2008 19:42    Post subject: Reply with quote
http://www.dd-wrt.com/phpBB2/viewtopic.php?t=40726&highlight=
mkk
DD-WRT Novice


Joined: 11 Nov 2008
Posts: 9
Location: Hong Kong PRC

PostPosted: Sun Nov 16, 2008 19:47    Post subject: Gateway Reply with quote
1)did you see WAN IP on sysinfo webpage ? if ther are 0.0.0.0 than you have problem !

2) have you set router to gateway mode ?
larry_m
DD-WRT Novice


Joined: 12 Nov 2008
Posts: 3

PostPosted: Mon Nov 17, 2008 19:14    Post subject: Reply with quote
1. On the sysinfo page, i see the correct ip address. The pppoe connection is established and the router is connected to the internet.
2. The router is in gateway mode. Ip forwarding seems enabled (in /proc/...)
3. I don't need pppoe relay. I would like to terminate the pppoe on the router's WAN port - as it is now.

I cant understand why outgoing packets passing via the router get to the destination but the incoming packets from the WAN port are dropped and the router sends time exceeded in-transit.
The_Dude
DD-WRT Novice


Joined: 08 Nov 2008
Posts: 8

PostPosted: Mon Nov 17, 2008 19:24    Post subject: Reply with quote
I think I ran into this same problem with v23 sp2 on my WRT54G v3, but I didn't try to debug the problem. I was able to connect via pppoe (router had an IP and DNS), but my computer couldn't access the internet. I updated to a later build of v24 and that fixed it.
larry_m
DD-WRT Novice


Joined: 12 Nov 2008
Posts: 3

PostPosted: Wed Nov 19, 2008 10:10    Post subject: Reply with quote
The_Dude, what version are you using? Mine is from 05/24/08 (SVN revision: 9526)
cybero2912
DD-WRT Guru


Joined: 18 Jun 2006
Posts: 1190
Location: Berlin

PostPosted: Wed Nov 19, 2008 10:22    Post subject: Reply with quote
try latest svn
and don't forget to reset (30/30/30) before and after flashing.
Don't use config backups - better configure all from scratch !
Display posts from previous:    Page 1 of 1
Post new topic   Reply to topic    DD-WRT Forum Index -> Broadcom SoC based Hardware All times are GMT

Navigation

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You can attach files in this forum
You can download files in this forum