LAN 192.168.1.0/24
RB is 192.168.1.1
PC is 192.168.1.2 (should have 1.1.1.2 as public IP)
WAN 1.1.1.0/29
1.1.1.1-1.1.1.5 assigned for me.
1.1.1.6 is the ISP gateway
Code: Select all
/ip address
add address=192.168.1.1/24 comment="default configuration" interface=ether2-master-local \
network=192.168.1.0
add address=1.1.1.1/29 interface=ether1-gateway network=1.1.1.0
add address=1.1.1.2/29 interface=ether1-gateway network=1.1.1.0
add address=1.1.1.3/29 interface=ether1-gateway network=1.1.1.0
add address=1.1.1.4/29 interface=ether1-gateway network=1.1.1.0
add address=1.1.1.5/29 interface=ether1-gateway network=1.1.1.0
/ip firewall filter
add action=accept chain=input dst-address=1.1.1.2
/ip firewall nat
add action=src-nat chain=srcnat out-interface=ether1-gateway src-address=\
192.168.1.2 to-addresses=1.1.1.2
add action=dst-nat chain=dstnat dst-address=1.1.1.2 in-interface=\
ether1-gateway to-addresses=192.168.1.2
add action=masquerade chain=srcnat out-interface=ether1-gateway \
src-address=!192.168.1.2
/ip route
add check-gateway=ping distance=1 gateway=1.1.1.6
src-nat generates hits
dst-nat has 0 hits.
Everyone is masqueraded to 1.1.1.1 and it works - ISP gateway is reachable.
Except 192.168.1.2 which is tied to 1.1.1.2 and it isn't able to ping the ISP gateway. When I disable the 1.1.1.2 rules then the PC goes out through 1.1.1.1 and works.
ISP router ARP table only has 1.1.1.1 visible from my side.
The problem is in the RB because when I assign 1.1.1.2 to the PC and hook it up in place of the RB I do have internet access and Google knows me as 1.1.1.2
What am I doing wrong? What to check?