С недавних пор подключение к интернету у меня осуществляется по pppoe с использованием логина и пароля.
Windows и ArchLinux (rp-pppoe: pppoe-setup, pppoe-start) подключаются нормально, а вот Ubuntu...
Настроив все через NetworkManager подлучаем такой конфиг: /etc/NetworkManager/system-connections/PTN
[connection]
id=PTN
uuid=5856d2f0-dee6-4bac-9836-afabfbffccca
type=pppoe
autoconnect=true
timestamp=0
[ppp]
noauth=true
refuse-eap=false
refuse-pap=false
refuse-chap=false
refuse-mschap=false
refuse-mschapv2=false
nobsdcomp=false
nodeflate=false
no-vj-comp=false
require-mppe=false
require-mppe-128=false
mppe-stateful=false
crtscts=false
baud=0
mru=0
mtu=0
lcp-echo-failure=5
lcp-echo-interval=30
[ipv4]
method=auto
ignore-auto-routes=false
ignore-auto-dns=false
dhcp-send-hostname=false
never-default=false
[pppoe]
username=ptn
password=ptn
[802-3-ethernet]
speed=0
duplex=full
auto-negotiate=true
mtu=0
При попытке подключения в /var/log/messages всплывает следующее:
Nov 28 15:05:40 fredrik-desktop pppd[911]: Plugin rp-pppoe.so loaded.
Nov 28 15:05:40 fredrik-desktop pppd[911]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Nov 28 15:05:40 fredrik-desktop pppd[911]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
Nov 28 15:05:40 fredrik-desktop pppd[911]: pppd 2.4.5 started by root, uid 0
Nov 28 15:05:56 fredrik-desktop pppd[911]: PPP session is 14365
Nov 28 15:05:56 fredrik-desktop pppd[911]: Connected to 00:1d:b5:70:14:b0 via interface eth0
Nov 28 15:05:56 fredrik-desktop pppd[911]: Using interface ppp0
Nov 28 15:05:56 fredrik-desktop pppd[911]: Connect: ppp0 <--> eth0
И все. Интернета нет, ppp0 не создан.
Если с помощью ps aux | grep ppp отловить во время подключения команду, с помощью которой поднимается соединение и выполнить ее вручную, то все получается:
fredrik@fredrik-desktop:~$ sudo /usr/sbin/pppd nodetach lock nodefaultroute user ptn plugin rp-pppoe.so nic-eth0 noauth nodeflate usepeerdns mru 1492 mtu 1492 lcp-echo-failure 5 lcp-echo-interval 30 ipparam /org/freedesktop/NetworkManager/PPP/2 plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so
Plugin rp-pppoe.so loaded.
RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
** Message: nm-ppp-plugin: (plugin_init): initializing
** Message: nm-ppp-plugin: (nm_phasechange): status 3 / phase 'serial connection'
PPP session is 14520
Connected to 00:1d:b5:70:14:b0 via interface eth0
Using interface ppp0
Connect: ppp0 <--> eth0
** Message: nm-ppp-plugin: (nm_phasechange): status 5 / phase 'establish'
** Message: nm-ppp-plugin: (nm_phasechange): status 6 / phase 'authenticate'
** Message: nm-ppp-plugin: (get_credentials): passwd-hook, requesting credentials...
** (process:1134): WARNING **: nm-ppp-plugin: (get_credentials): could not get secrets: (19) Method "NeedSecrets" with signature "" on interface "org.freedesktop.NetworkManager.PPP" doesn't exist
PAP authentication succeeded
peer from calling number 00:1D:B5:70:14:B0 authorized
** Message: nm-ppp-plugin: (nm_phasechange): status 8 / phase 'network'
Cannot determine ethernet address for proxy ARP
local IP address 89.110.59.165
remote IP address 92.100.64.1
primary DNS address 213.158.7.2
secondary DNS address 212.48.193.36
** Message: nm-ppp-plugin: (nm_phasechange): status 9 / phase 'running'
** Message: nm-ppp-plugin: (nm_ip_up): ip-up event
** Message: nm-ppp-plugin: (nm_ip_up): sending Ip4Config to NetworkManager...
При этом в /var/log/messages следующее:
Nov 28 15:07:28 fredrik-desktop pppd[1134]: Plugin rp-pppoe.so loaded.
Nov 28 15:07:28 fredrik-desktop pppd[1134]: RP-PPPoE plugin version 3.8p compiled against pppd 2.4.5
Nov 28 15:07:28 fredrik-desktop pppd[1134]: Plugin /usr/lib/pppd/2.4.4/nm-pppd-plugin.so loaded.
Nov 28 15:07:28 fredrik-desktop pppd[1134]: pppd 2.4.5 started by fredrik, uid 0
Nov 28 15:07:43 fredrik-desktop pppd[1134]: PPP session is 14520
Nov 28 15:07:43 fredrik-desktop pppd[1134]: Connected to 00:1d:b5:70:14:b0 via interface eth0
Nov 28 15:07:43 fredrik-desktop pppd[1134]: Using interface ppp0
Nov 28 15:07:43 fredrik-desktop pppd[1134]: Connect: ppp0 <--> eth0
Nov 28 15:07:44 fredrik-desktop pppd[1134]: PAP authentication succeeded
Nov 28 15:07:44 fredrik-desktop pppd[1134]: peer from calling number 00:1D:B5:70:14:B0 authorized
Nov 28 15:07:44 fredrik-desktop pppd[1134]: local IP address 89.110.59.165
Nov 28 15:07:44 fredrik-desktop pppd[1134]: remote IP address 92.100.64.1
Nov 28 15:07:44 fredrik-desktop pppd[1134]: primary DNS address 213.158.7.2
Nov 28 15:07:44 fredrik-desktop pppd[1134]: secondary DNS address 212.48.193.36
И так, вопрос: почему команда запускаемая от имени NetworkManager не может поднять соединение, а точно такая же, запущенная от пользователя (через sudo) его поднимает? Как чинить?