Code: Select all
ether1 (ip=192.168.1.254/24) -> internet router (ip=192.168.1.1)
ether9 (ip=5.5.5.5/24) -> my PC (ip=5.5.5.6)
Code: Select all
/ip address
add address=192.168.1.254/24 comment="router FO" interface=ether1 network=192.168.1.0
add address=5.5.5.5/24 comment="port de Gestio" interface=ether9 network=5.5.5.0
/ip dns
set allow-remote-requests=yes servers=8.8.8.8,8.8.4.4
/ip firewall nat
add action=masquerade chain=srcnat out-interface=ether1
/ip route
add distance=1 gateway=192.168.1.1
/system identity
set name=SAG-a2f
I can access the router using "ssh admin@5.5.5.5" from my PC at 5.5.5.6
Being inside the router I can reach google's dns :
Code: Select all
[admin@SAG-a2f] > ping 8.8.8.8
SEQ HOST SIZE TTL TIME STATUS
0 8.8.8.8 56 116 23ms
1 8.8.8.8 56 116 16ms
2 8.8.8.8 56 116 21ms
3 8.8.8.8 56 116 16ms
sent=4 received=4 packet-loss=0% min-rtt=16ms avg-rtt=19ms max-rtt=23ms
Code: Select all
nicolau@mars:~$ wget 5.5.5.5
--2022-01-11 12:37:38-- http://5.5.5.5/
Connecting to 5.5.5.5:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 7023 (6.9K) [text/html]
Saving to: ‘index.html’
index.html 100%[======================================================>] 6.86K --.-KB/s in 0.002s
2022-01-11 12:37:38 (3.98 MB/s) - ‘index.html’ saved [7023/7023]
It must be obvious for you, but I cant see what am I missing.
1) any ideas ?
2) any documentation ?
Thanks.