Active Topics

 


Reply
Thread Tools
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#1
Can someone please tell me how to setup a route when using pptp.

the route command does not seem to help me, and I do not have a nat kernel module, so iptables is also not helping me.


Suggestions? Pointers?

I connect and get an ip address, but I can not use it at all, no packets seem to be flowing?
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#2
Can anyone point me anywhere, I need routing help or a nat kernel module. Am I really going to have to break down and install scratchbox and compile the kernel?

Someone must have this, can you please post it?

Thanks
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#3
Originally Posted by penguinbait
I connect and get an ip address, but I can not use it at all, no packets seem to be flowing?
You should be able at least to ping the other side of the tunnel no matter how routing is set. If packets are really not flowing NAT will not help you with this. Last time I tried PPTP it worked for me. For accessing other machines behind tunnel I needed to add specific routes to these hosts or set default gateway (route add default gw x.x.x.x where x is the other side of the tunnel).
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#4
Please note this is accurate, but the names and IP addresses have been changed to protect the innocent... ;-)

Any ideas you can suggest would be great !! Sorry so long :-(




Nokia770-26:~# ifconfig


ppp0 Link encap:Point-Point Protocol
inet addr:10.0.100.217 P-t-P:139.108.201.82 Mask:255.255.255.255
UP POINTOPOINT RUNNING NOARP MULTICAST MTU:1496 Metric:1
RX packets:7 errors:0 dropped:0 overruns:0 frame:0
TX packets:12177 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:70 (70.0 B) TX bytes:5004700 (4.7 MiB)

wlan0 Link encap:Ethernet HWaddr 00:14:A7:FA:36:AE
inet addr:192.168.0.30 Bcast:192.168.0.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:11271 errors:0 dropped:0 overruns:0 frame:0
TX packets:12851 errors:4 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:1755292 (1.6 MiB) TX bytes:1416930 (1.3 MiB)



Nokia770-26:~# ping 10.0.100.217
PING 10.0.100.217 (10.0.100.217): 56 data bytes
64 bytes from 10.0.100.217: icmp_seq=0 ttl=64 time=0.5 ms
64 bytes from 10.0.100.217: icmp_seq=1 ttl=64 time=0.3 ms

--- 10.0.100.217 ping statistics ---
2 packets transmitted, 2 packets received, 0% packet loss
round-trip min/avg/max = 0.3/0.4/0.5 ms


Nokia770-26:~# ping 139.108.201.82
PING 139.108.201.82 (139.108.201.82): 56 data bytes

--- 139.108.201.82 ping statistics ---
3 packets transmitted, 0 packets received, 100% packet loss


Nokia770-26:~# ping 10.0.100.1
PING 10.0.100.1 (10.0.100.1): 56 data bytes

--- 10.0.100.1 ping statistics ---
2 packets transmitted, 0 packets received, 100% packet loss


Nokia770-26:~# ping 10.0.100.199
PING 10.0.100.199 (10.0.100.199): 56 data bytes

--- 10.0.100.199 ping statistics ---
1 packets transmitted, 0 packets received, 100% packet loss



Nokia770-26:~# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
139.108.201.82 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
default 192.168.0.1 0.0.0.0 UG 0 0 0 wlan0

Nokia770-26:~# route del default
Nokia770-26:~# route add default gw 139.108.201.82 dev ppp0
Nokia770-26:~# route

Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
139.108.201.82 * 255.255.255.255 UH 0 0 0 ppp0
192.168.0.0 * 255.255.255.0 U 0 0 0 wlan0
default 139.108.201.82 0.0.0.0 UG 0 0 0 ppp0


__________________________________________________ _____

You can see I setup the default route but it does not matter because I can not ping 139.108.201.82

Nothing seems to be working, I can not even ping the other end of the tunnel

Below is the debug from my connection, it all looks ok, there is the one proxy arp error is this something to worry about?

__________________________________________________ _____



Nokia770-26:/lib/modules# pon ALLIANCE debug dump logfd 2 nodetach
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
persist # (from /etc/ppp/peers/ALLIANCE)
logfd 2 # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/options.pptp)
name NAME # (from /etc/ppp/peers/ALLIANCE)
remotename PPTP # (from /etc/ppp/peers/ALLIANCE)
# (from /etc/ppp/options.pptp)
pty /usr/bin/pptp0 139.108.201.82 --nolaunchpppd # (from /etc/ppp/peers/ALLIANCE)
crtscts # (from /etc/ppp/options)
# (from /etc/ppp/options)
asyncmap 0 # (from /etc/ppp/options)
lcp-echo-failure 4 # (from /etc/ppp/options)
lcp-echo-interval 30 # (from /etc/ppp/options)
hide-password # (from /etc/ppp/options)
ipparam ALLIANCE # (from /etc/ppp/peers/ALLIANCE)
defaultroute # (from /etc/ppp/peers/ALLIANCE)
proxyarp # (from /etc/ppp/options)
nobsdcomp # (from /etc/ppp/options.pptp)
nodeflate # (from /etc/ppp/options.pptp)
require-mppe-128 # (from /etc/ppp/peers/ALLIANCE)
noipx # (from /etc/ppp/options)
using channel 21
Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
sent [LCP ConfReq id=0x1 <asyncmap 0x0> <magic 0x815f68b8> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <auth chap MS> <magic 0x784883ed>]
sent [LCP ConfAck id=0x1 <auth chap MS> <magic 0x784883ed>]
rcvd [LCP ConfRej id=0x1 <asyncmap 0x0> <pcomp> <accomp>]
sent [LCP ConfReq id=0x2 <magic 0x815f68b8>]
rcvd [LCP ConfAck id=0x2 <magic 0x815f68b8>]
sent [LCP EchoReq id=0x0 magic=0x815f68b8]
rcvd [CHAP Challenge id=0x1 <c01a8d384ea76c8a>, name = ""]
sent [CHAP Response id=0x1 <000000000000000000000000000000000000000000000000d 069dbabbdb791dc85ddb8a2035090ce82580b0ced2e477201> , name = "Mlewis"]
rcvd [LCP EchoRep id=0x0 magic=0x784883ed]
rcvd [CHAP Success id=0x1 ""]
CHAP authentication succeeded
sent [CCP ConfReq id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x1 <mppe +H -M +S +L -D -C>]
sent [CCP ConfNak id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfAck id=0x1 <mppe +H -M +S -L -D -C>]
rcvd [CCP ConfReq id=0x2 <mppe +H -M +S -L -D -C>]
sent [CCP ConfAck id=0x2 <mppe +H -M +S -L -D -C>]
MPPE 128-bit stateless compression enabled
sent [IPCP ConfReq id=0x1 <compress VJ 0f 01> <addr 0.0.0.0>]
rcvd [IPCP ConfReq id=0x1 <addr 139.108.201.82>]
sent [IPCP ConfAck id=0x1 <addr 139.108.201.82>]
rcvd [IPCP ConfRej id=0x1 <compress VJ 0f 01>]
sent [IPCP ConfReq id=0x2 <addr 0.0.0.0>]
rcvd [IPCP ConfNak id=0x2 <addr 10.0.100.217>]
sent [IPCP ConfReq id=0x3 <addr 10.0.100.217>]
rcvd [IPCP ConfAck id=0x3 <addr 10.0.100.217>]
not replacing default route to wlan0 [192.168.0.1]
Cannot determine ethernet address for proxy ARP
local IP address 10.0.100.217
remote IP address 139.108.201.82
Script /etc/ppp/ip-up started (pid 1634)
Script /etc/ppp/ip-up finished (pid 1634), status = 0x0
 
Posts: 2,152 | Thanked: 1,490 times | Joined on Jan 2006 @ Czech Republic
#5
If you can configure also other side of the tunnel, I'd try to have both IPs from same network but it probably doesn't matter. Also I'd remove 'proxyarp' which IMO should be on the other side of the tunnel if you want to access other computers in remote network since it should pretend your IP is him to computers in that network. But both options should not be fatal. Can you also try to ping your n770 from the other side?

I'd guess it can be also misconfiguration on the other side. I'll try to connect via PPTP too and attach a log.

Also when seeing 'pty' in the output there is a low limit on the number of ptys being 4 so try to increase it just in case
http://www.gossamer-threads.com/list...%20limit;#5027
 
penguinbait's Avatar
Posts: 3,096 | Thanked: 1,525 times | Joined on Jan 2006 @ Michigan, USA
#6
Originally Posted by fanoush
If you can configure also other side of the tunnel, I'd try to have both IPs from same network but it probably doesn't matter. Also I'd remove 'proxyarp' which IMO should be on the other side of the tunnel if you want to access other computers in remote network since it should pretend your IP is him to computers in that network. But both options should not be fatal. Can you also try to ping your n770 from the other side?

I'd guess it can be also misconfiguration on the other side. I'll try to connect via PPTP too and attach a log.

Also when seeing 'pty' in the output there is a low limit on the number of ptys being 4 so try to increase it just in case
http://www.gossamer-threads.com/list...%20limit;#5027
I am connecting to a windows server and I have no access to it. I can connect in windows no problem. It could be something stupid, but I can t seem to find it, I spent a day trying to get my chap file right :-)

thanks for the pty link, that was annoying

I installed syslog and got this output, not sure if this is good or not? there is some nokia ppp autoconf stuff, not sure if this is normal.

Oct 25 23:15:27 Nokia770-26 pppd[1200]: pppd 2.4.2 started by root, uid 0
Oct 25 23:15:27 Nokia770-26 ke_recv[870]: handle_kevent:178: i|m|p: org.kernel.kevent|add|/org/kernel/class/net/ppp0
Oct 25 23:15:27 Nokia770-26 pppd[1200]: Using interface ppp0
Oct 25 23:15:27 Nokia770-26 pppd[1200]: Connect: ppp0 <--> /dev/pts/1
Oct 25 23:15:27 Nokia770-26 pptp[1203]: anon log[mainptp.c:267]: The synchronous pptp option is NOT activated
Oct 25 23:15:27 Nokia770-26 pptp[1205]: anon log[ctrlp_repptp_ctrl.c:251]: Sent control packet type is 1 'Start-Control-Connection-Request'
Oct 25 23:15:27 Nokia770-26 pptp[1205]: anon log[ctrlp_dispptp_ctrl.c:738]: Received Start Control Connection Reply
Oct 25 23:15:27 Nokia770-26 pptp[1205]: anon log[ctrlp_dispptp_ctrl.c:772]: Client connection established.
Oct 25 23:15:28 Nokia770-26 pptp[1205]: anon log[ctrlp_repptp_ctrl.c:251]: Sent control packet type is 7 'Outgoing-Call-Request'
Oct 25 23:15:28 Nokia770-26 pptp[1205]: anon log[ctrlp_dispptp_ctrl.c:857]: Received Outgoing Call Reply.
Oct 25 23:15:28 Nokia770-26 pptp[1205]: anon log[ctrlp_dispptp_ctrl.c:896]: Outgoing call established (call ID 0, peer's call ID 620).
Oct 25 23:15:29 Nokia770-26 pppd[1200]: CHAP authentication succeeded
Oct 25 23:15:29 Nokia770-26 pppd[1200]: not replacing default route to wlan0 [192.168.0.1]
Oct 25 23:15:29 Nokia770-26 pppd[1200]: Cannot determine ethernet address for proxy ARP
Oct 25 23:15:29 Nokia770-26 pppd[1200]: local IP address 10.0.100.213
Oct 25 23:15:29 Nokia770-26 pppd[1200]: remote IP address 207.148.201.82
Oct 25 23:15:29 Nokia770-26 icd 1.0.22[888]: Service ':1.48' belongs now to base service ':1.48'.
Oct 25 23:15:29 Nokia770-26 icd 1.0.22[888]: Received com.nokia.icd.autoconf.autoconf_changed signal
Oct 25 23:15:29 Nokia770-26 icd 1.0.22[888]: Received autoconf_changed notification for interface ppp0 from program PPP with parameter .
Oct 25 23:15:29 Nokia770-26 icd 1.0.22[888]: [default] wlan_autoconf_changed(): invalid interface 'ppp0'
Oct 25 23:15:29 Nokia770-26 icd 1.0.22[888]: Base service ':1.48' no longer exists.
Oct 25 23:15:53 Nokia770-26 DSME: error reading fd (11): Resource temporarily unavailable

Last edited by penguinbait; 2006-10-26 at 03:26.
 
Reply


 
Forum Jump


All times are GMT. The time now is 21:01.