I have several Public IPs assigned to one WAN interface,
For Example I have 2 Public IPs (10.1.1.2 and 10.1.1.3) assigned to the WAN interface,
So I want to make 2 port forwarding Rules for example 10.1.1.2 port 22 to 192.168.1.2 port 22 and another port forwarding rule 10.1.1.3 port 22 to 192.168.1.3 port 22,
I have made a dst-nat rule with a
Code: Select all
destination address of 10.1.1.2, protocol tcp, Dst. port 22, in-interface: WAN, action: dst-nat, to addresses: 192.168.1.2, to ports: 22
and I have added a filter rule since I have some exception rules, so the rule is:
Code: Select all
action: accept, chain: forward, dst.address: 10.1.1.2, protocol: tcp, Dst.port 22
is there anything done wrong here?
Thanks in advance!