Delay PPPoE connection after boot 23.05

As the title says I would like to delay the pppoe connection after boot.
I've tried with
config interface 'pppoe'
option ifname 'eth0.2'
option proto 'pppoe'
option username 'your_username'
option password 'your_password'
option delay '60'

but it doesn't work. Another solution would be to block an ip internet access right after the boot process for x seconds.
cheers

Welcome to the community!

It doesn't work because there's no such configuration.

If you're willing to explain why you need the delay or why you need to "block an ip internet access right after the boot process for x seconds", maybe we can offer you possible solutions (i.e. reset the switch, interface, down/up it, delay/reorder that process, etc.).

  • Instead of blocking Internet on could cron a firewall rule to block/unblock traffic on the device
  • You can also configure the domains into the OpenWrt's dnsmasq, somewhat like a blacklist

screen704

In your case, your syntax would be:

/example.com/

Where example.com is the blocked domain. Create an entry for each hostname. Be sure to Save & Apply afterwards.

Reference: https://alblue.bandlem.com/2020/05/using-dnsmasq.html

I'm sure others can provide additional ideas as well.

1 Like

Somehow DNS forwardings is also not working.

guys, any other ideas?

disable image

do ifup after 60 sec ?

and don't bump the threads.

2 Likes

My advice would be to:

  • Disable 'Bring up on boot' like @frollic says.
  • Write a little script that incorporates the 60s delay and then brings up your WAN interface
  • Run that at startup with a cron job

I believe even the cron implementation OpenWrt uses supports the @reboot time setting.

No need, add it to rc.local.

Thanks a lot I already did, it's working now.

1 Like

This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.