LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-17-2016, 07:59 AM   #1
CptNorbert
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Rep: Reputation: Disabled
Connection problems to VPN using pptp (ppp0 is down wont go up) no errors. Raspberry Pi, Raspbian,


Ok this is my first time ever posting on a forum, I have been searching for days and have found nothing so I apologise if I have just missed the info.

I have tried to set up a Pi access point, (which is connected to my router directly via Ethernet) VPN to a Cyber ghost account. I had it set up once but now for some reason when I try to launch a pptp-linux connection using "sudo pon CG_US" the ppp0 connection does now show up in "ifconfig" but does in "ifconfig -a". Im assuming this just means it can't connect properly, however I receive absolutely no error messages. Is there anybody who knows why this is?, I just can't seem to find any information anywhere.

/etc/ppp/peers/CG_US
Quote:
pty "pptp #server --nolaunchpppd --debug"
name #user
password #password
remotename PPTP
require-mppe-128
require-mschap-v2
refuse-eap
refuse-pap
refuse-chap
refuse-mschap
noauth
debug
persist
maxfail 0
defaultroute
replacedefaultroute
usepeerdns
/etc/network/interfaces
Quote:
# interfaces(5) file used by ifup(8) and ifdown(8)

# Please note that this file is written to be used with dhcpcd
# For static IP, consult /etc/dhcpcd.conf and 'man dhcpcd.conf'

# Include files from /etc/network/interfaces.d:
source-directory /etc/network/interfaces.d

auto lo
iface lo inet loopback

iface eth0 inet manual

#auto wlan0
allow-hotplug wlan0
#iface wlan0 inet manual
# wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface wlan0 inet static
address 192.168.42.1
netmask 255.255.255.0

allow-hotplug wlan1
iface wlan1 inet manual
wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

auto tunnel
iface tunnel inet ppp
provider CG_US



up iptables-restore < /etc/iptables.ipv4.nat
/etc/iptables.ipv4.nat
Quote:
# Generated by iptables-save v1.4.21 on Sun Jan 17 12:36:34 2016
*filter
:INPUT ACCEPT [292:21624]
:FORWARD ACCEPT [0:0]
:OUTPUT ACCEPT [189:17927]
-A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT
-A FORWARD -i wlan0 -o eth0 -j ACCEPT
COMMIT
# Completed on Sun Jan 17 12:36:34 2016
# Generated by iptables-save v1.4.21 on Sun Jan 17 12:36:34 2016
*nat
:PREROUTING ACCEPT [34:2002]
:INPUT ACCEPT [6:602]
:OUTPUT ACCEPT [20:1464]
:POSTROUTING ACCEPT [0:0]
-A POSTROUTING -o eth0 -j MASQUERADE
COMMIT
# Completed on Sun Jan 17 12:36:34 2016
sudo ip addr show
Quote:
1: lo: <LOOPBACK,UP,LOWER_UP> mtu 65536 qdisc noqueue state UNKNOWN group default
link/loopback 00:00:00:00:00:00 brd 00:00:00:00:00:00
inet 127.0.0.1/8 scope host lo
valid_lft forever preferred_lft forever
inet6 ::1/128 scope host
valid_lft forever preferred_lft forever
2: eth0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc pfifo_fast state UP group default qlen 1000
link/ether b8:27:eb:3a:6a:7c brd ff:ff:ff:ff:ff:ff
inet 192.168.1.124/24 brd 192.168.1.255 scope global eth0
valid_lft forever preferred_lft forever
inet6 fe80::25dc:284:6119:8b09/64 scope link
valid_lft forever preferred_lft forever
3: wlan0: <BROADCAST,MULTICAST,UP,LOWER_UP> mtu 1500 qdisc mq state UP group default qlen 1000
link/ether 00:13:ef:70:67:36 brd ff:ff:ff:ff:ff:ff
inet 169.254.15.228/16 brd 169.254.255.255 scope global wlan0
valid_lft forever preferred_lft forever
inet6 fe80::8112:d2b9:989d:15/64 scope link
valid_lft forever preferred_lft forever
94: ppp0: <POINTOPOINT,MULTICAST,NOARP> mtu 1500 qdisc noop state DOWN group default qlen 3
link/ppp
nestat -r
Quote:
Kernel IP routing table
Destination Gateway Genmask Flags MSS Window irtt Iface
default router.asus.com 0.0.0.0 UG 0 0 0 eth0
38.95.109.60 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
60.242-151-104. router.asus.com 255.255.255.255 UGH 0 0 0 eth0
181.243-183-107 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
162.244.81.235 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
link-local * 255.255.0.0 U 0 0 0 wlan0
107.186-80-192. router.asus.com 255.255.255.255 UGH 0 0 0 eth0
192.168.1.0 * 255.255.255.0 U 0 0 0 eth0
198.15.102.14 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
117.208-231-199 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
hosted-by.EqSer router.asus.com 255.255.255.255 UGH 0 0 0 eth0
208.31.49.32 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
208.31.49.37 router.asus.com 255.255.255.255 UGH 0 0 0 eth0
Ok I think that is all the useful information I need to post, please ask if you need anything else. Any help you can provide is greatly appreciated.
 
Old 01-19-2016, 07:07 AM   #2
Gary Baker
Member
 
Registered: Mar 2007
Location: Whitsett,NC
Distribution: Slackware 14.1 and MINT 17.1
Posts: 105

Rep: Reputation: 3
Can you post ifconfig -a. It might help.
 
Old 01-25-2016, 09:16 AM   #3
CptNorbert
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Sure sorry it's been a while, university final year...

Quote:
pi@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:3a:6a:7c
inet addr:192.168.1.124 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::25dc:284:6119:8b09/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:191576 errors:0 dropped:1169 overruns:0 frame:0
TX packets:44442 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37483158 (35.7 MiB) TX bytes:8970736 (8.5 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6734 errors:0 dropped:0 overruns:0 frame:0
TX packets:6734 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:513304 (501.2 KiB) TX bytes:513304 (501.2 KiB)

wlan0 Link encap:Ethernet HWaddr 00:13:ef:70:67:36
inet addr:192.168.42.1 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::8112:d2b9:989d:15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30019 errors:0 dropped:417 overruns:0 frame:0
TX packets:50304 errors:0 dropped:6540 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4876622 (4.6 MiB) TX bytes:29108436 (27.7 MiB)
For about 10 maybe 20 seconds after "sudo pon CG_US"
Quote:
pi@raspberrypi:~ $ ifconfig -a
eth0 Link encap:Ethernet HWaddr b8:27:eb:3a:6a:7c
inet addr:192.168.1.124 Bcast:192.168.1.255 Mask:255.255.255.0
inet6 addr: fe80::25dc:284:6119:8b09/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:192245 errors:0 dropped:1169 overruns:0 frame:0
TX packets:45209 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:37527402 (35.7 MiB) TX bytes:9107782 (8.6 MiB)

lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
inet6 addr: ::1/128 Scope:Host
UP LOOPBACK RUNNING MTU:65536 Metric:1
RX packets:6736 errors:0 dropped:0 overruns:0 frame:0
TX packets:6736 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:513456 (501.4 KiB) TX bytes:513456 (501.4 KiB)

ppp0 Link encap:Point-to-Point Protocol
POINTOPOINT NOARP MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:3
RX bytes:0 (0.0 B) TX bytes:0 (0.0 B)

wlan0 Link encap:Ethernet HWaddr 00:13:ef:70:67:36
inet addr:192.168.42.1 Bcast:192.168.42.255 Mask:255.255.255.0
inet6 addr: fe80::8112:d2b9:989d:15/64 Scope:Link
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:30019 errors:0 dropped:417 overruns:0 frame:0
TX packets:50308 errors:0 dropped:6541 overruns:0 carrier:0
collisions:0 txqueuelen:1000
RX bytes:4876622 (4.6 MiB) TX bytes:29109080 (27.7 MiB)

Last edited by CptNorbert; 01-25-2016 at 09:18 AM.
 
Old 01-25-2016, 09:38 AM   #4
CptNorbert
LQ Newbie
 
Registered: Jan 2016
Posts: 3

Original Poster
Rep: Reputation: Disabled
Oh another command that may help "sudo pon CG_US debug dump nodetach"

Quote:
pppd options in effect:
debug # (from command line)
nodetach # (from command line)
dump # (from command line)
noauth # (from /etc/ppp/peers/CG_US)
name 4533902_sdumjh29qe # (from /etc/ppp/peers/CG_US)
remotename CG_US # (from /etc/ppp/peers/CG_US)
# (from /etc/ppp/peers/CG_US)
pty pptp 4-us.cg-dialup.net --nolaunchpppd # (from /etc/ppp/peers/CG_US)
crtscts # (from /etc/ppp/options)
# (from /etc/ppp/options)
asyncmap ffffffff # (from /etc/ppp/options)
-am # (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 CG_US # (from /etc/ppp/peers/CG_US)
nobsdcomp # (from /etc/ppp/peers/CG_US)
nodeflate # (from /etc/ppp/peers/CG_US)
require-mppe-128 # (from /etc/ppp/peers/CG_US)
noipx # (from /etc/ppp/options)
using channel 20
Using interface ppp0
Connect: ppp0 <--> /dev/pts/1
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
sent [LCP ConfReq id=0x1 <magic 0x8f89c133> <pcomp> <accomp>]
rcvd [LCP ConfReq id=0x1 <asyncmap 0x0> <auth chap MS-v2> <magic 0x9b091ced> <pcomp> <accomp>]
sent [LCP ConfRej id=0x1 <asyncmap 0x0>]
LCP: timeout sending Config-Requests
Connection terminated.
Modem hangup
Waiting for 1 child processes...
script pptp 4-us.cg-dialup.net --nolaunchpppd, pid 9873
Script pptp 4-us.cg-dialup.net --nolaunchpppd finished (pid 9873), status = 0x0
Im beginning to wonder if it's my new router causing the problems (Asus RT-N56U).
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
PPTP VPN connection issue aihaike Linux - Networking 2 10-12-2014 04:59 AM
pptp and stunnel vpn connection problems (linux 2 linux) metalloid Linux - Networking 0 11-23-2006 08:44 PM
router between eth0 <-> ppp0 (pptp connection) jpifer Linux - Networking 2 03-12-2006 12:57 PM
VPN pptp Connection GroverB Linux - Networking 1 10-29-2005 03:13 PM
problem of PPTP VPN connection. kocu Linux - Networking 9 09-24-2005 02:08 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 09:13 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration