Community discussions

MikroTik App
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Problem connecting mikrotik router with broadband connection

Mon Mar 24, 2014 5:39 pm

I have mikrotik router 750GL, broadband connection and username & password from broadband provider for PPPoE connection. I tried this link http://wiki.mikrotik.com/wiki/Manual:Interface/PPPoE to setup PPPoE client in Mikrotik router.
/interface pppoe-client 
  add name=pppoe-user-mike user=user password=passwd interface=wlan1 \
  service-name=internet disabled=no
I plugged in broadband wire in first port of mikrotik router and LAN cable in the second port for systems. I used above mention code to setup PPPoE client. After i set this setup, I monitored the status of this interface it shows
waiting for packets...
In the Log
pppoe-out1: initializing..
pppoe-out1: waiting for packets...
pppoe-out1: dialing....
pppoe-out1: terminating... -disconnected 
pppoe-out1: disconnected 
How can I solve this problem?
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: Problem connecting mikrotik router with broadband connec

Mon Mar 24, 2014 7:09 pm

The issue is that you setup the PPPoE on the wireless interface then plugged the internet connection into a wired interface.

Edit the PPPoE Client and change the interface to match the interface that the broadband provider is plugged into. The script you used must have been for having the PPPoE over the wireless and your using the wireless for internal connections.

The proper PPPoE setting is probably:
/interface pppoe-client
  add name=pppoe-user-mike user=user password=passwd interface=ether1 service-name=internet disabled=no
You can easily change this with winbox or the web interface.
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 8:26 am

I tried as you said but no luck. Is there any way to make it work?
 
Clauu
Member Candidate
Member Candidate
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 8:36 am

Try to not set anything on the service name as many providers has a problem with it.
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 11:12 am

Thank you all guys for reply I got connected to broadband, I confirmed it as
interface pppoe-client> monitor pppoe-out 
          status: connected
          uptime: 13m17s
       idle-time: 2m41s
    active-links: 1
    service-name: 
         ac-name: ser-8-G61BQ251
          ac-mac: 00:30:88:1F:5B:B3
             mtu: 1480
             mru: 1480
   local-address: 106.51.134.124
  remote-address: 106.51.128.1
Now I see the broadband is connected to mikrotik router, but I don't get internet to my system. In Mikrotik router I have added address for LAN systems as
/ip address> print 
 #   ADDRESS            NETWORK         INTERFACE
D   106.51.134.124/32  106.51.128.1    pppoe-out
     192.168.2.1/24     192.168.2.0     ether2
the first one is the address for WAN has created in address list when I get authenticated from broadband provider. In the interface pppoe-client is
>interface pppoe-client print 

 R name="pppoe-out" max-mtu=1480 max-mru=1480 mrru=disabled interface=ether1-Input
      user="username" password="pass" profile=default service-name="" 
      ac-name="" add-default-route=no dial-on-demand=no use-peer-dns=no 
      allow=pap,chap,mschap1,mschap2 
Then I have connected my system over LAN to mikrotik router's second port and assigned my system a IP as
IP:192.168.2.10
subnetmask: 255.255.255.0
default gateway: 192.168.2.1
preferred DNS: 192.168.2.1
After these setup I don't get internet connection for my system. There is an exclamatory symbol on the internet icon.
 
Clauu
Member Candidate
Member Candidate
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 11:37 am

You have to change the pppoe iface and modifiy add-default-route=yes then add a masquerade in your firewall
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 12:03 pm

You have to change the pppoe iface and modifiy add-default-route=yes then add a masquerade in your firewall
/ip firewall nat
add action=masquerade chain=srcnat out-interface=pppoe-out

Should I change pppoe iface, you mean interface?. It is already set to ether1-Input where I connected broadband cable(connected to first port of mikrotik router).
 
Clauu
Member Candidate
Member Candidate
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 12:35 pm

Set that option to yes in your pppoe-out interface
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 1:19 pm

I have done set as you said. now from my system I can able to ping 8.8.8.8, but when I try to open www.google.co.in in my browser the page is not working.
 
Clauu
Member Candidate
Member Candidate
Posts: 217
Joined: Fri Mar 21, 2014 8:27 pm
Location: RO

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 1:44 pm

If you want to use your isp dns be sure that use-peer-dns is checked or add it manually use-peer-dns=yes in the same way as the default-route option. If you want your own/google dns then set them on the dhcp server if you have one or from webinf ip-dns/manually
/ip dns
set allow-remote-requests=yes servers=ip
 
User avatar
joshaven
Member
Member
Posts: 438
Joined: Fri May 06, 2011 1:50 am
Location: USA
Contact:

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 2:37 pm

If you want to use your isp dns be sure that use-peer-dns is checked or add it manually use-peer-dns=yes in the same way as the default-route option. If you want your own/google dns then set them on the dhcp server if you have one or from webinf ip-dns/manually
/ip dns
set allow-remote-requests=yes servers=ip
Also be sure you only answer DNS requests to internal machines. People scan for open DNS servers and use them for DNS amplification attacks.
/ip firewall filter add chain=input in-interface=all-ppp protocol=udp port=53 action=drop comment="Drop DNS requests from PPP Connection"
I didn't test the above line so it could have a typo... basically in the input chain drop UDP 53 from your internet interface. However even better would be to accept only the services you offer (which may be noting or just access to your router with winbox) and drop anything else. If you have other interfaces that connect to the internet then you will need to drop DNS on all of them which could take more then one rule.
 
niren
Frequent Visitor
Frequent Visitor
Topic Author
Posts: 76
Joined: Mon Oct 14, 2013 9:59 am

Re: Problem connecting mikrotik router with broadband connec

Tue Mar 25, 2014 5:01 pm

Thank you all guys. Finally I got it work by change DNS address in my system to ISP DNS.

Who is online

Users browsing this forum: Google [Bot], JmJ17 and 99 guests