Community discussions

MikroTik App
 
LockOn
just joined
Topic Author
Posts: 1
Joined: Sat Aug 14, 2021 12:45 pm

Cannot ping from PC but from terminal works fine

Sat Aug 14, 2021 1:21 pm

Hello, I have very little knowledge about this, I got this router and found some guides on how to configure it as a load balancer, I think all is working, but i cannot ping from my pc to anywhere, except for my gateway and wan IP, but from winbox i can ping anywhere without any issues, if I connect my pc directly to the modem I can ping normally.

If I run a tracert I can reach to the last hop from my PC

This is what I have.
/interface bridge
add name=LAN
/interface ethernet
set [ find default-name=ether6 ] comment="LAN 1" name=LAN1
set [ find default-name=ether7 ] comment="LAN 2" name=LAN2
set [ find default-name=ether8 ] comment="LAN 3" name=LAN3
set [ find default-name=ether9 ] comment="LAN 4" name=LAN4
set [ find default-name=ether10 ] comment="LAN 5" name=LAN5
set [ find default-name=ether5 ] name="no use"
set [ find default-name=ether1 ] comment="***ISP 1***" name=Wan1
set [ find default-name=ether2 ] comment="***ISP 2***" name=Wan2
set [ find default-name=ether3 ] comment="***ISP 3***" name=Wan3
set [ find default-name=ether4 ] comment="***ISP 4***" name=Wan4
/interface wireless security-profiles
set [ find default=yes ] supplicant-identity=MikroTik
/ip pool
add name=dhcp_pool1 ranges=192.168.1.50-192.168.1.254
/ip dhcp-server
add address-pool=dhcp_pool1 disabled=no interface=LAN name=dhcp1
/interface bridge port
add bridge=LAN interface=LAN1
add bridge=LAN interface=LAN2
add bridge=LAN interface=LAN3
add bridge=LAN interface=LAN4
add bridge=LAN interface=LAN5
/ip address
add address=192.168.1.1/24 interface=LAN network=192.168.1.0
/ip dhcp-client
add disabled=no interface=Wan1 use-peer-dns=no use-peer-ntp=no
add disabled=no interface=Wan2 use-peer-dns=no use-peer-ntp=no
add disabled=no interface=Wan3 use-peer-dns=no use-peer-ntp=no
add disabled=no interface=Wan4 use-peer-dns=no use-peer-ntp=no
/ip dhcp-server network
add address=192.168.1.0/24 dns-server=192.168.1.1 gateway=192.168.1.1
/ip dns
set allow-remote-requests=yes servers=1.1.1.1
/ip firewall mangle
add action=mark-connection chain=prerouting connection-state=new in-interface=LAN new-connection-mark=conn1 nth=4,1
add action=mark-routing chain=prerouting connection-mark=conn1 in-interface=LAN new-routing-mark=conn1 passthrough=no
add action=mark-connection chain=prerouting connection-state=new in-interface=LAN new-connection-mark=conn2 nth=4,2
add action=mark-routing chain=prerouting connection-mark=conn2 in-interface=LAN new-routing-mark=conn2 passthrough=no
add action=mark-connection chain=prerouting connection-state=new in-interface=LAN new-connection-mark=conn3 nth=4,3
add action=mark-routing chain=prerouting connection-mark=conn3 in-interface=LAN new-routing-mark=conn3 passthrough=no
add action=mark-connection chain=prerouting connection-state=new in-interface=LAN new-connection-mark=conn4 nth=4,4
add action=mark-routing chain=prerouting connection-mark=conn4 in-interface=LAN new-routing-mark=conn4 passthrough=no
/ip firewall nat
add action=masquerade chain=srcnat connection-mark=conn1 out-interface=Wan1
add action=masquerade chain=srcnat connection-mark=conn2 out-interface=Wan2
add action=masquerade chain=srcnat connection-mark=conn3 out-interface=Wan3
add action=masquerade chain=srcnat connection-mark=conn4 out-interface=Wan4
/ip route
add comment=ether1_force distance=1 gateway=**********%Wan1 routing-mark=conn1

There is a script running that enable automatically the wan ports as they have dynamic IP and there is no way I can ask my isp to set them static.

Who is online

Users browsing this forum: SMARTNETTT and 32 guests