[RP-PPPoE] Problemas para conectar con HTTP tras levantar la conexión

SANTIAGO DURO santiagoduro at gmail.com
Tue Nov 26 09:22:46 EST 2013


Hello,

After compiling and install the package rp-pppoe 3.10 toSolaris 10 SPARC, I
got to start the conexion pppoe with this configuration file

bash-3.00# vi /etc/ppp/pppoe.conf
"/etc/ppp/pppoe.conf" 130 lines, 4168 characters
#***********************************************************************
# pppoe.conf
#
# NOTE: This file is used by the pppoe-start, pppoe-stop, pppoe-connect and
#       pppoe-status shell scripts.  It is *not* used in any way by the
#       "pppoe" executable.
#
#***********************************************************************
# When you configure a variable, DO NOT leave spaces around the "=" sign.
# Ethernet card connected to ERX
ETH='qfe2'
# PPPoE user name.
USER='sd3M at tests.pruebas.ipv6'
# Specific desired service name
SERVICENAME=tests.pruebas.ipv6
# Specific desired AC Name
ACNAME=Linea1-pppoeERX
# Bring link up on demand?  Default is to leave link up all the time.
# If you want the link to come up on demand, set DEMAND to a number
indicating
# the idle time after which the link is brought down.
DEMAND=no
# DNS type: SERVER=obtain from server; SPECIFY=use DNS1 and DNS2;
# NOCHANGE=do not adjust.
#DNSTYPE=SERVER
DNSTYPE=NOCHANGE
# Obtain DNS server addresses from the peer (recent versions of pppd only)
# In old config files, this used to be called USEPEERDNS.  Changed to
# PEERDNS for better Red Hat compatibility
PEERDNS=no
DNS1=202.63.164.17
DNS2=202.63.164.18
# Make the PPPoE connection your default route.  Set to
# DEFAULTROUTE=no if you don't want this.
DEFAULTROUTE=no
### ONLY TOUCH THE FOLLOWING SETTINGS IF YOU'RE AN EXPERT
# How long pppoe-start waits for a new PPP interface to appear before
# concluding something went wrong.  If you use 0, then pppoe-start
# exits immediately with a successful status and does not wait for the
# link to come up.  Time is in seconds.
#
# WARNING WARNING WARNING:
#
# If you are using rp-pppoe on a physically-inaccessible host, set
# CONNECT_TIMEOUT to 0.  This makes SURE that the machine keeps trying
# to connect forever after pppoe-start is called.  Otherwise, it will
# give out after CONNECT_TIMEOUT seconds and will not attempt to
# connect again, making it impossible to reach.
CONNECT_TIMEOUT=30
# How often in seconds pppoe-start polls to check if link is up
CONNECT_POLL=2
# Character to echo at each poll.  Use PING="" if you don't want
# anything echoed
PING="."
# File where the pppoe-connect script writes its process-ID.
# Three files are actually used:
#   $PIDFILE       contains PID of pppoe-connect script
#   $PIDFILE.pppoe contains PID of pppoe process
#   $PIDFILE.pppd  contains PID of pppd process
CF_BASE=`basename $CONFIG`
PIDFILE="/var/run/$CF_BASE-pppoe.pid"
# Do you want to use synchronous PPP?  "yes" or "no".  "yes" is much
# easier on CPU usage, but may not work for you.  It is safer to use
# "no", but you may want to experiment with "yes".  "yes" is generally
# safe on Linux machines with the n_hdlc line discipline; unsafe on others.
SYNCHRONOUS=yes
# Do you want to clamp the MSS?  Here's how to decide:
# - If you have only a SINGLE computer connected to the DSL modem, choose
#   "no".
# - If you have a computer acting as a gateway for a LAN, choose "1412".
#   The setting of 1412 is safe for either setup, but uses slightly more
#   CPU power.
CLAMPMSS=1412
#CLAMPMSS=no
# LCP echo interval and failure count.
LCP_INTERVAL=20
LCP_FAILURE=3
# PPPOE_TIMEOUT should be about 4*LCP_INTERVAL
PPPOE_TIMEOUT=80
# Firewalling: One of NONE, STANDALONE or MASQUERADE
FIREWALL=NONE
# Linux kernel-mode plugin for pppd.  If you want to try the kernel-mode
# plugin, use LINUX_PLUGIN=/etc/ppp/plugins/rp-pppoe.so
#PLUGIN=

# Device to communicate over
# Typically pty on Linux an sppptun on Solaris
TTY="pty"
# Any extra arguments to pass to pppoe.  Normally, use a blank string
# like this:
PPPOE_EXTRA="debug"
# Rumour has it that "Citizen's Communications" with a 3Com
# HomeConnect DSL Modem DualLink requires these extra options:
# PPPOE_EXTRA="-f 3c12:3c13 -S ISP"
# Any extra arguments to pass to pppd.  Normally, use a blank string
# like this:
PPPD_EXTRA="debug"

########## DON'T CHANGE BELOW UNLESS YOU KNOW WHAT YOU ARE DOING
# If you wish to COMPLETELY overrride the pppd invocation:
# Example:
# OVERRIDE_PPPD_COMMAND="pppd call dsl"
# If you want pppoe-connect to exit when connection drops:
RETRY_ON_FAILURE=yes

As my file log says /var/log/daemon.notice

Nov 26 06:51:58 ps-4 pppd[20234]: [ID 860527 daemon.notice] pppd 2.4.0b1
(Sun Microsystems, Inc.) started by root, uid 0
Nov 26 06:51:58 ps-4 pppd[20234]: [ID 702911 daemon.notice] Connect: sppp0
<--> /dev/pts/10
Nov 26 06:52:03 ps-4 pppd[20234]: [ID 702911 daemon.notice] local  IP
address 172.31.206.236
Nov 26 06:52:03 ps-4 pppd[20234]: [ID 702911 daemon.notice] remote IP
address 172.31.206.254

And the command executed:
ifconfig -a

...
sppp0:
flags=10010008d1<UP,POINTOPOINT,RUNNING,NOARP,MULTICAST,IPv4,FIXEDMTU> mtu
1492 index 34
        inet 172.31.206.236 --> 172.31.206.254 netmask ffff0000
        ether 0:0:0:0:0:0
...

And the other command
netstat -rn

172.31.206.254       172.31.206.236       UH        1          1 sppp0
173.194.41.223       172.31.206.254       UGH       1          1

After start the conexion pppoe, I can ping to google (173.194.41.223)
bash-3.00# ping 173.194.41.223
173.194.41.223 is alive

But I can't acces to  http://173.194.41.223 . It doesn't work

bash-3.00# /usr/sfw/bin/wget -t 1 -T 10 --user-agent=mozilla
http://173.194.41.223 -O /var/tmp/google.txt
--11:14:16--  http://173.194.41.223/
           => `/var/tmp/google.txt'
Connecting to 173.194.41.223:80... connected.
HTTP request sent, awaiting response... Read error (Connection timed out)
in headers.
Giving up.


Running the command snoop, I can see the next:

bash-3.00# snoop -d sppp0 -VV host 173.194.41.223
Using device sppp0 (promiscuous mode)
________________________________
172.31.206.236 -> 173.194.41.223 ETHER Type=0800 (IP), size = 78 bytes
172.31.206.236 -> 173.194.41.223 IP  D=173.194.41.223 S=172.31.206.236
LEN=64, ID=55669, TOS=0x0, TTL=64
172.31.206.236 -> 173.194.41.223 TCP D=80 S=59857 Syn Seq=4222813534 Len=0
Win=33033 Options=<mss 1452,nop,nop,tstamp 2722458775 0,nop,wscale
2,nop,nop,sackOK>
172.31.206.236 -> 173.194.41.223 HTTP C port=59857
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 74 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=60, ID=46711, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Syn Ack=4222813535
Seq=151565411 Len=0 Win=42540 Options=<mss 1430,sackOK,tstamp 1846645123
2722458775,nop,wscale 6>
173.194.41.223 -> 172.31.206.236 HTTP R port=59857
________________________________
172.31.206.236 -> 173.194.41.223 ETHER Type=0800 (IP), size = 66 bytes
172.31.206.236 -> 173.194.41.223 IP  D=173.194.41.223 S=172.31.206.236
LEN=52, ID=55670, TOS=0x0, TTL=64
172.31.206.236 -> 173.194.41.223 TCP D=80 S=59857 Ack=151565412
Seq=4222813535 Len=0 Win=33323 Options=<nop,nop,tstamp 2722458778
1846645123>
172.31.206.236 -> 173.194.41.223 HTTP C port=59857
________________________________
172.31.206.236 -> 173.194.41.223 ETHER Type=0800 (IP), size = 164 bytes
172.31.206.236 -> 173.194.41.223 IP  D=173.194.41.223 S=172.31.206.236
LEN=150, ID=55671, TOS=0x0, TTL=64
172.31.206.236 -> 173.194.41.223 TCP D=80 S=59857 Push Ack=151565412
Seq=4222813535 Len=98 Win=33323 Options=<nop,nop,tstamp 2722458778
1846645123>
172.31.206.236 -> 173.194.41.223 HTTP GET / HTTP/1.0
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 66 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=52, ID=46712, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151565412 Len=0 Win=664 Options=<nop,nop,tstamp 1846645146 2722458778>
173.194.41.223 -> 172.31.206.236 HTTP R port=59857
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46721, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151565412 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP HTTP/1.0 200 OK
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46722, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151566830 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP
4012591,4012593,4012611,4012629,4012632,4012681,4012732,4012810,4012836,4012839,
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46723, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151568248 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP
,c){google.x({id:a+m++},function(){google.load(a,b,c)})}};var m=0;})();
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46724, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151569666 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP .gb4{color:#900
!important}</style><style>body,td,a,p,.h{font-family:arial,sans-
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46725, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151571084 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP /images/srpr/nav_logo80.png';var
iesg=false;document.body.onload = function(){wi
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46726, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151572502 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP center><br clear="all" id="lgpd"><div
id="lga"><div style="padding:28px 0 3px"><
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46727, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151573920 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP ools</a></td></tr></table><input
type="hidden" id="gbv" name="gbv" value="1"></f
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46728, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151575338 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP ("&")}};google.promos.link.cl
=function(b){try{window.gbar.up.sl(g,f,e.CLICK,goog
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46729, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151576756 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645191
2722458778>
173.194.41.223 -> 172.31.206.236 HTTP (){function
b(a){window.setTimeout(function(){var c=document.createElement("scri
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=886?, ID=46722, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Push Ack=4222813633
Seq=151578174 Len=834 Win=664 Options=<nop,nop,tstamp 1846645191 2722458778>
173.194.41.223 -> 172.31.206.236 HTTP hEvent("onerror",f))}function
h(a){e=(new Date).getTime();++c;a=a||window.event;
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 66 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=52, ID=46723, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Fin Ack=4222813633
Seq=151579008 Len=0 Win=664 Options=<nop,nop,tstamp 1846645191 2722458778>
173.194.41.223 -> 172.31.206.236 HTTP R port=59857
________________________________
172.31.206.236 -> 173.194.41.223 ETHER Type=0800 (IP), size = 66 bytes
172.31.206.236 -> 173.194.41.223 IP  D=173.194.41.223 S=172.31.206.236
LEN=52, ID=55672, TOS=0x0, TTL=64
172.31.206.236 -> 173.194.41.223 TCP D=80 S=59857 Ack=151565412
Seq=4222813633 Len=0 Win=33323 Options=<nop,nop,tstamp 2722458784
1846645146>
172.31.206.236 -> 173.194.41.223 HTTP C port=59857
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46724, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151565412 Len=1418 Win=664 Options=<nop,nop,tstamp 1846645883
2722458784>
173.194.41.223 -> 172.31.206.236 HTTP HTTP/1.0 200 OK
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46725, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151565412 Len=1418 Win=664 Options=<nop,nop,tstamp 1846647135
2722458784>
173.194.41.223 -> 172.31.206.236 HTTP HTTP/1.0 200 OK
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 522 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=1470?, ID=46726, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Ack=4222813633
Seq=151565412 Len=1418 Win=664 Options=<nop,nop,tstamp 1846649639
2722458784>
173.194.41.223 -> 172.31.206.236 HTTP HTTP/1.0 200 OK
________________________________
172.31.206.236 -> 173.194.41.223 ETHER Type=0800 (IP), size = 66 bytes
172.31.206.236 -> 173.194.41.223 IP  D=173.194.41.223 S=172.31.206.236
LEN=52, ID=55673, TOS=0x0, TTL=64
172.31.206.236 -> 173.194.41.223 TCP D=80 S=59857 Fin Ack=151565412
Seq=4222813633 Len=0 Win=33323 Options=<nop,nop,tstamp 2722459779
1846645146>
172.31.206.236 -> 173.194.41.223 HTTP C port=59857
________________________________
173.194.41.223 -> 172.31.206.236 ETHER Type=0800 (IP), size = 54 bytes
173.194.41.223 -> 172.31.206.236 IP  D=172.31.206.236 S=173.194.41.223
LEN=40, ID=46727, TOS=0x0, TTL=53
173.194.41.223 -> 172.31.206.236 TCP D=59857 S=80 Rst Seq=151565412 Len=0
Win=0
173.194.41.223 -> 172.31.206.236 HTTP R port=59857

I don't know what it is happening exactly, it appears like if there were
any problem in the fragmentation or something like that.

Thanks in advance.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.roaringpenguin.com/pipermail/rp-pppoe/attachments/20131126/2f250dcd/attachment-0001.html>


More information about the RP-PPPoE mailing list