I am trying to setup http://wiki.mikrotik.com/wiki/PCC
but in there the 2 public interfaces have static ips and in my case the public interfaces get their ips through a PPPoE account and they are dynamic.
So in the code and settings in the wikki they often refer to the public interfaces ip when adding rules to the firewall.
is there a way that i can like create a alias for a dynamic ip or maybe change the code from
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=Local
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=Local
to like ip address of ether1? intead of just 10.112.0.0
Specify src/dst -address-type=local in filter rule. This will match the address to whatever the that interface’s IP(s) are.
add chain=prerouting dst-address-type=local action=accept in-interface=Local
Or
add chain=prerouting src-address-type=local action=accept in-interface=Local
thanks i will give it a try.
and now what do i do for gateway?:
/ ip route
add dst-address=0.0.0.0/0 gateway=10.111.0.1 routing-mark=to_wlan1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 routing-mark=to_wlan2 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.111.0.1 distance=1 check-gateway=ping
add dst-address=0.0.0.0/0 gateway=10.112.0.1 distance=2 check-gateway=ping
and over here?
add chain=prerouting dst-address=10.111.0.0/24 action=accept in-interface=ether3
add chain=prerouting dst-address=10.112.0.0/24 action=accept in-interface=ether3
I need to change dst-address to (interface “internet1” ip address) in stead of 10.11.0.0./24
what do i type?