You are not logged in.

#1 2012-12-20 07:32:22

rchiang
Member
Registered: 2012-07-05
Posts: 13

[SOLVED]How to configure pptp vpn start on boot with netcfg?

I've configured 2 profiles:
eth0 and ppp0, where ppp0 is a pptp vpn tunnel.

$ ls /etc/network.d/
eth0  examples  interfaces  ppp0

$ cat /etc/network.d/ppp0
CONNECTION='ppp'
INTERFACE='ppp0'
PEER='dxt'
PPP_TIMEOUT=10


$ cat /etc/conf.d/netcfg
# Enable these netcfg profiles at boot time.
#   - prefix an entry with a '@' to background its startup
#   - set to 'last' to restore the profiles running at the last shutdown
#   - set to 'menu' to present a menu (requires the dialog package)
# Network profiles are found in /etc/network.d
NETWORKS=(eth0 ppp0)

# Specify the name of your wired interface for net-auto-wired
WIRED_INTERFACE="eth0"

# Specify the name of your wireless interface for net-auto-wireless
WIRELESS_INTERFACE="wlan0"

Manually, I can start up ppp0 correctly.
$ sudo netcfg -u ppp0
:: ppp0 up                                                                                                                                                                 [ BUSY ] Using interface ppp0
Connect: ppp0 <--> /dev/pts/3
CHAP authentication succeeded
MPPE 128-bit stateless compression enabled
Cannot determine ethernet address for proxy ARP
local  IP address 10.100.3.132
remote IP address 10.100.3.1
                                                                                                                                                                           [ DONE ]
$ ip addr list dev ppp0
8: ppp0: <POINTOPOINT,MULTICAST,NOARP,UP,LOWER_UP> mtu 1496 qdisc pfifo_fast state UNKNOWN qlen 3
    link/ppp
    inet 10.100.3.132 peer 10.100.3.1/32 scope global ppp0

But after booting, only eth0 is up. How to configure ppp0 to start on boot with netcfg?

Last edited by rchiang (2012-12-21 01:09:32)

Offline

#2 2012-12-20 17:19:29

chris_l
Member
Registered: 2010-12-01
Posts: 390

Re: [SOLVED]How to configure pptp vpn start on boot with netcfg?

Did you

systemctl enable netcfg@ppp0.service

?


"open source is about choice"
No.
Open source is about opening the source code complying with this conditions, period. The ability to choose among several packages is just a nice side effect.

Offline

#3 2012-12-21 01:04:03

rchiang
Member
Registered: 2012-07-05
Posts: 13

Re: [SOLVED]How to configure pptp vpn start on boot with netcfg?

Thanks a lot for your instruction.
netcfg works now!

chris_l wrote:

Did you

systemctl enable netcfg@ppp0.service

?

Offline

Board footer

Powered by FluxBB