Community discussions

MikroTik App
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

pppoe-out connection

Tue Aug 21, 2018 8:31 am

Our pppoe-out internet connection has gone down twice now over the past two weeks.
Each time for nearly exactly 60 seconds. What red flags should be raised? What additional logging/actions should be taken?
Talked to the ISP and they said no known network outages during those times...
Last edited by Cvan on Wed Aug 22, 2018 5:05 am, edited 1 time in total.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13130
Joined: Thu Mar 03, 2016 10:23 pm

Re: pppoe-out connection

Tue Aug 21, 2018 8:49 am

What exactly is in the log with regard to pppoe behaviour?
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Tue Aug 21, 2018 9:10 am

pppoe, ppp, info pppoe-out1:terminating... disconnected
pppoe, ppp, info pppoe-out1:disonnected
pppoe, ppp, info pppoe-out1:connecting
pppoe, ppp, info pppoe-out1:terminating...

etc; exact details in attached image
You do not have the required permissions to view the files attached to this post.
 
User avatar
mkx
Forum Guru
Forum Guru
Posts: 13130
Joined: Thu Mar 03, 2016 10:23 pm

Re: pppoe-out connection

Tue Aug 21, 2018 9:53 am

Weird indeed.

Is ROS version on your RB device current?
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: pppoe-out connection

Tue Aug 21, 2018 3:00 pm

Is there a port isolation on access switch? Some bad user can spoof BRAS mac address.
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Wed Aug 22, 2018 4:57 am

Port based VLAN isolation setup. My concern is if this is an attack of some sort

ROS version stable 6.42.6
 
User avatar
Steveocee
Forum Guru
Forum Guru
Posts: 1199
Joined: Tue Jul 21, 2015 10:09 pm
Location: UK
Contact:

Re: pppoe-out connection

Wed Aug 22, 2018 3:51 pm

Are you sure it is PPPoE related and not that the carrier link has gone down? What technology are you connecting over?
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Thu Aug 23, 2018 7:11 am

Fiber (FTTP)

Not really sure if it is carrier or not. So asking what tools available can I use to unveil such mysteries..?
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: pppoe-out connection

Thu Aug 23, 2018 2:57 pm

Fiber (FTTP)

Not really sure if it is carrier or not. So asking what tools available can I use to unveil such mysteries..?
Use torch in tools.
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Fri Aug 24, 2018 2:05 am

Maybe, how can I log to file every time our connection drops out from the carrier/ISP??

We keep losing our L2TP tunnel as well and have to constantly rebuild the tunnel and reset the FW rules..
 
User avatar
Anumrak
Forum Guru
Forum Guru
Posts: 1174
Joined: Fri Jul 28, 2017 2:53 pm

Re: pppoe-out connection

Fri Aug 24, 2018 2:47 pm

In "log" or use script made by yourself.

https://wiki.mikrotik.com/wiki/Manual%3ASystem/Log
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Sun Aug 26, 2018 9:32 am

I am thinking more of a script that will send an email or SMS message to me when specific conditions are met.
Surely there is a way to send an HTTP request from router OS when a log event or fw event is triggered...?
 
nostromog
Member Candidate
Member Candidate
Posts: 226
Joined: Wed Jul 18, 2018 3:39 pm

Re: pppoe-out connection

Mon Aug 27, 2018 6:09 pm

One way to force script execution when a connection changes state is to use the on-up / on-down attributes of the /ppp profiles.

So you could have something like:
/interface pppoe-client
add add-default-route=yes disabled=no interface=ether1 max-mru=1500 max-mtu=1500 mrru=1614 name=pppoe-out1 password=****** \
    profile=myprovider service-name=********* use-peer-dns=yes user=*********
/ppp profile
add change-tcp-mss=yes name=myprovider on-up=new-ip
/system script
add dont-require-permissions=no name=new-ip owner=admin policy=ftp,reboot,read,write,policy,test,password,sniff,sensitive,romon \
    source="..."
I have dynamic WAN IP addresses in one MT router, so I'm using it to get the new address and modify some ipsec policies, firewall rules, etc. needing the WAN ip.
You could use it with /tool fetch to send a HTTP(S) request, etc.
 
Cvan
Member Candidate
Member Candidate
Topic Author
Posts: 129
Joined: Sat Jun 09, 2018 3:32 am

Re: pppoe-out connection

Thu Aug 30, 2018 3:21 am

Good answer!, thanks for that.