Restart PPPoE manually?
-
I would like to restart the PPPoE connection manually (eg. to receive a new IP).
Is there a way to do it?
-
Hi!
Install Cron with command:
/var/etc/pppoe_restart_pppoe0
…and you can obtain a fresh IP every night.
Manual:
Status -> Interfaces
press Disconnect.
-
[…]
Manual:
Status -> Interfaces
press Disconnect.
Works great! Thanks!
Install Cron with command:
/var/etc/pppoe_restart_pppoe0
[…]I am on 2.2.6 and there is no
/var/etc/pppoe_restart_pppoe0
ls -l /var/etc/ total 80 -rw-r--r-- 1 root wheel 2483 May 13 09:47 apinger.conf -rw-r--r-- 1 root wheel 122 May 13 09:47 dhclient_opt5.conf -rw-r--r-- 1 root wheel 121 May 13 09:47 filterdns.conf -rw-r--r-- 1 root wheel 133 May 13 09:47 hosts -rw-r--r-- 1 root wheel 70 May 13 09:47 inetd.conf drwxr-xr-x 2 root wheel 512 May 13 09:47 l2tp-vpn -rw-r--r-- 1 root wheel 4882 May 13 09:47 lighty-webConfigurator.conf lrwxr-xr-x 1 root wheel 26 May 13 09:47 mpd.script -> /usr/local/sbin/mpd.script -rw-r--r-- 1 root wheel 930 May 13 09:47 mpd_wan.conf -rw-r--r-- 1 root wheel 31 May 13 09:47 nameserver_pppoe0 -rw-r--r-- 1 root wheel 0 May 13 09:47 nameserver_v6pppoe0 -rw-r--r-- 1 root wheel 487 May 13 09:47 ntpd.conf drwxr-x--- 2 root wheel 512 May 13 09:47 openvpn drwxr-x--- 2 root wheel 512 May 13 09:47 openvpn-csc -rw-r--r-- 1 root wheel 39 May 13 09:47 radvd.conf -rw-r--r-- 1 root wheel 112 May 13 09:47 relayd.conf -rw-r--r-- 1 root wheel 74 May 13 09:47 resolv.conf -rw-r--r-- 1 root wheel 24 May 13 09:47 resolvconf.conf -rw-r--r-- 1 root wheel 1287 May 13 09:47 syslog.conf -rw------- 1 root wheel 73 May 13 09:47 voucher_tardis.cfg -rw------- 1 root wheel 108 May 13 09:47 voucher_tardis.public
-
That's why I wrote "Install" ;-)
Cron is a package.
-
…after installation you will find it under "Services" -> "Cron", here a screenshot from 2.2.6 as a template for a new job to restart PPPoE at night every day ;)
[cron pppoe.jpg](/public/imported_attachments/1/cron pppoe.jpg)
-
cron is already installed on my system.
In my understanding cron ist "just" the caller, so I'm missing the callee. On my 2.2.6 there is no:
/var/etc/pppoe_restart_pppoe0
-
Can somebody please provide me the answer for this for 2.7.2?
/var/etc/pppoe_restart_pppoe0 doesn't exist in 2.7.2
-
Probably because your looking at forum messages that are 8 years old, from 2016. pfSense 2.2.6 is very ancient now.