Author Topic: Conexão PPPoe  (Read 1007 times)

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Conexão PPPoe
« on: August 31, 2020, 03:43:47 am »
Olá Pessoal alguém conseguiria me ajudar, tenho um servidor com 2 placas de rede definidas como wan, tive que mudar uma para co estão PPPoe, o zentyal até conecta e cria o gwtay, mas não navega, alguém pode me auxiliar?
« Last Edit: August 31, 2020, 08:06:00 pm by Tiago »

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Re: Conexão PPPoe
« Reply #1 on: September 05, 2020, 10:14:34 pm »
Ele dá o seguinte erro:

Some modules reported error when saving changes . More information on the logs in /var/log/zentyal/
The following modules failed while saving their changes, their state is unknown: network


Alguém pode me ajudar?

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Conexão PPPoe
« Reply #2 on: September 08, 2020, 06:26:34 pm »
 :)

Si su configuración PPPoE es correcta, este comando debería reiniciar su módulo de red.

Code: [Select]
sudo zs network restart
Pegue aquí su configuración PPPoE (quitando contraseñas e ips, etc) si cree que podría ser incorrecta.

Su archivo /var/log/zentyal/zentyal.log contiene seguramente mucha información útil para examinar este problema.

¡Salud!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Re: Conexão PPPoe
« Reply #3 on: September 12, 2020, 01:21:52 am »
As configurações de Usuário e senha estão corretas, pois coloquei um roteador pra fazer a conexão PPPoe e funcionou perfeitamente, segue abaixo parte do Log de erros:

Restarting service for module: firewall
2020/08/30 11:51:03 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/jZCg_SlgdO.cmd 2> /var/lib/zentyal/tmp/stderr', '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2', 256, 'ARRAY(0x558f99d73108)', 'ARRAY(0x558f97af5360)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/zentyal-network/failover-checker line 323
main::_setIptablesRule('gtw5', 1, 'gw_ping', 'ppp0/187.72.73.179') called at /usr/share/zentyal-network/failover-checker line 246
main::_testRule('EBox::Model::Row=HASH(0x558f99c088e8)') called at /usr/share/zentyal-network/failover-checker line 54
2020/08/30 11:51:09 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: firewall
2020/08/30 11:51:10 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2 failed.
Error output: ethtool: bad command line argument(s)
 For more information run ethtool -h
 run-parts: /etc/network/if-up.d/ethtool exited with return code 1

Command output: Plugin rp-pppoe.so loaded.
 Failed to bring up zentyal-ppp-eth2.
.
Exit value: 1 at root command /usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2 failed.
Error output: ethtool: bad command line argument(s)
 For more information run ethtool -h
 run-parts: /etc/network/if-up.d/ethtool exited with return code 1

Command output: Plugin rp-pppoe.so loaded.
 Failed to bring up zentyal-ppp-eth2.
.
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/dXIFNPClSG.cmd 2> /var/lib/zentyal/tmp/stderr', '/usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2', 256, 'ARRAY(0x55c05386c610)', 'ARRAY(0x55c050325b90)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2') called at /usr/share/perl5/EBox/Network.pm line 3737
EBox::Network::_enforceServiceState('EBox::Network=HASH(0x55c0524b2480)') called at /usr/share/perl5/EBox/Module/Service.pm line 947
EBox::Module::Service::_regenConfig('EBox::Network=HASH(0x55c0524b2480)') called at /usr/share/perl5/EBox/Module/Base.pm line 234
eval {...} at /usr/share/perl5/EBox/Module/Base.pm line 233
EBox::Module::Base::save('EBox::Network=HASH(0x55c0524b2480)') called at /usr/share/perl5/EBox/GlobalImpl.pm line 649
eval {...} at /usr/share/perl5/EBox/GlobalImpl.pm line 648
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55c0523f3f88)', 'progress', 'EBox::ProgressIndicator=HASH(0x55c04ea11b08)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55c0522f0900)', 'progress', 'EBox::ProgressIndicator=HASH(0x55c04ea11b08)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/08/30 11:51:10 ERROR> GlobalImpl.pm:653 EBox::GlobalImpl::saveAllModules - Failed to save changes in module network: root command /usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2 failed.
Error output: ethtool: bad command line argument(s)
 For more information run ethtool -h
 run-parts: /etc/network/if-up.d/ethtool exited with return code 1

Command output: Plugin rp-pppoe.so loaded.
 Failed to bring up zentyal-ppp-eth2.
.
Exit value: 1
2020/08/30 11:51:10 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: antivirus
2020/08/30 11:51:12 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: dhcp
2020/08/30 11:51:14 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: openvpn
2020/08/30 11:51:15 INFO> Base.pm:231 EBox::Module::Base::save - Restarting service for module: firewall
2020/08/30 11:51:15 ERROR> GlobalImpl.pm:728 EBox::GlobalImpl::saveAllModules - The following modules failed while saving their changes, their state is unknown: network  at The following modules failed while saving their changes, their state is unknown: network  at /usr/share/perl5/EBox/GlobalImpl.pm line 728
EBox::GlobalImpl::saveAllModules('EBox::GlobalImpl=HASH(0x55c0523f3f88)', 'progress', 'EBox::ProgressIndicator=HASH(0x55c04ea11b08)') called at /usr/share/perl5/EBox/Global.pm line 95
EBox::Global::AUTOLOAD('EBox::Global=HASH(0x55c0522f0900)', 'progress', 'EBox::ProgressIndicator=HASH(0x55c04ea11b08)') called at /usr/share/zentyal/global-action line 32
eval {...} at /usr/share/zentyal/global-action line 30
2020/08/30 11:51:20 INFO> Service.pm:965 EBox::Module::Service::restartService - Restarting service for module: firewall
2020/08/30 11:52:03 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/SeYjcQYgUz.cmd 2> /var/lib/zentyal/tmp/stderr', '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2', 256, 'ARRAY(0x55d9b49bd4e0)', 'ARRAY(0x55d9b273acd0)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/zentyal-network/failover-checker line 323
main::_setIptablesRule('gtw5', 1, 'gw_ping', 'ppp0/187.72.73.179') called at /usr/share/zentyal-network/failover-checker line 246
main::_testRule('EBox::Model::Row=HASH(0x55d9b487b4e0)') called at /usr/share/zentyal-network/failover-checker line 54
2020/08/30 11:53:02 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/s84du7tVgW.cmd 2> /var/lib/zentyal/tmp/stderr', '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2', 256, 'ARRAY(0x556d98a1ba58)', 'ARRAY(0x556d96798518)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/zentyal-network/failover-checker line 323
main::_setIptablesRule('gtw5', 1, 'gw_ping', 'ppp0/187.72.73.179') called at /usr/share/zentyal-network/failover-checker line 246
main::_testRule('EBox::Model::Row=HASH(0x556d988b2178)') called at /usr/share/zentyal-network/failover-checker line 54
2020/08/30 11:54:02 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1 at /usr/share/perl5/EBox/Sudo.pm line 240
EBox::Sudo::_rootError('/usr/bin/sudo -p sudo: /var/lib/zentyal/tmp/HNvTXAO_Ts.cmd 2> /var/lib/zentyal/tmp/stderr', '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2', 256, 'ARRAY(0x56214dc3f6e8)', 'ARRAY(0x56214bb364b0)') called at /usr/share/perl5/EBox/Sudo.pm line 210
EBox::Sudo::_root(1, '/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/perl5/EBox/Sudo.pm line 153
EBox::Sudo::root('/sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2') called at /usr/share/zentyal-network/failover-checker line 323
main::_setIptablesRule('gtw5', 1, 'gw_ping', 'ppp0/187.72.73.179') called at /usr/share/zentyal-network/failover-checker line 246
main::_testRule('EBox::Model::Row=HASH(0x56214dc9e008)') called at /usr/share/zentyal-network/failover-checker line 54
2020/08/30 11:54:10 INFO> Index.pm:187 EBox::Dashboard::CGI::Index::masonParameters - dashboard1
2020/08/30 11:55:03 ERROR> Sudo.pm:240 EBox::Sudo::_rootError - root command /sbin/iptables -t mangle -A FAILOVER-TEST --proto icmp --icmp-type echo-request -m string --algo bm  --string zfailovertest --dst ppp0/187.72.73.179 -j MARK --set-mark 2 failed.
Error output: iptables: No chain/target/match by that name.

Command output: .
Exit value: 1

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Conexão PPPoe
« Reply #4 on: September 12, 2020, 10:19:42 pm »
 :)

¿Has comprobado si existe en /etc/network/interfaces la configuración de "zentyal-ppp-eth2"?  .  Parece que ni siquiera ethtool puede acceder a dicha interfaz para consultar su configuración. Resumiendo, tu interfaz PPP no está correctamente configurada.

¿Cómo la configuraste? ¿Cómo conectaste dicha interfaz a la red (físicamente)?

Code: [Select]
Exit value: 1 at root command /usr/share/zentyal/unblock-exec /sbin/ifup --force -i /etc/network/interfaces zentyal-ppp-eth2 failed.
Error output: ethtool: bad command line argument(s)
 For more information run ethtool -h
 run-parts: /etc/network/if-up.d/ethtool exited with return code 1

Command output: Plugin rp-pppoe.so loaded.
 Failed to bring up zentyal-ppp-eth2.

¡Salud!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Re: Conexão PPPoe
« Reply #5 on: September 13, 2020, 02:42:00 pm »
Sim o modem está em Bridge e está conectado diretamente na ETH2, ele recebe o IP 187.72.73.179  e cria o gateway ppp0/187.72.73.179, porém após isso ele para alguns serviços como o DHCP, a configuração está sendo feita via WEB.

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Re: Conexão PPPoe
« Reply #6 on: September 13, 2020, 02:55:31 pm »
Estou seguindo a configuração deste link https://doc.zentyal.org/en/_images/iface_pppoe.png

doncamilo

  • Zen Samurai
  • ****
  • Posts: 478
  • Karma: +165/-1
    • View Profile
Re: Conexão PPPoe
« Reply #7 on: September 14, 2020, 06:52:55 pm »
 :)

Has intentado configurar la interfaz manualmente con pppoeconf https://help.ubuntu.com/community/ADSLPPPoE?

Conecta una máquina linux directamente al router e intenta configurar una interfaz PPPoE mediante pppoeconf. De este modo sabrás si el problema está en Zentyal o no. Creo que ésto es lo más sencillo y te permitirá avanzar un poco en el problema.

¡Salud!
- Do my pigeons bother you passing over your land?
- They block the sun!

G. Guareschi., Don Camillo.,

Tiago

  • Zen Warrior
  • ***
  • Posts: 122
  • Karma: +11/-1
    • View Profile
Re: Conexão PPPoe
« Reply #8 on: October 02, 2020, 09:15:25 pm »
Não consegui testar ainda, mas assim que conseguir testar e obtiver os resultados posto aqui. Obrigado