Hi All,
i have 2 public IP coming from single UTP. i want to create NAT for 2 servers. my question is
- can i assign 2 public IP into single interface?
- i know to assign into interface, but not IP address for NAT. can you guys show the way. tq
Hi All,
i have 2 public IP coming from single UTP. i want to create NAT for 2 servers. my question is
you mean you want to use two public ip address to one server having single NIC ?
or you want to use both the ips to router and want to dst-nat the local ip to make it reachable via public network ?
please ,clarify.
i want to do 1 public IP NAT to 1 private IP. but this 2 public IP coming from single UTP/link.
No problem at all. I’ve recently spun something similar up for a customer request.
My use case was pppoe-out1 with static IP X.X.X.1 and then it had a /29 of routed IP’s Y.Y.Y.0/29 of which each port in the router (RB3011) was going to have a different LAN range but traffic coming from a corresponding public IP.
EG;
ether1 = 192.168.1.1 = Y.Y.Y.1
ether2 = 192.168.2.1 = Y.Y.Y.2
The pppoe-client (or router if you like) used the X.X.X.1
Then using src-nat rules (note not masquerade), src-address=192.168.1.0/24 action=src-nat to-address=Y.Y.Y.1
dst-nat rules are just set up as you would any other dst-address Y.Y.Y.2 action=dst-nat to-address=192.168.2.200
I think that’s what you were asking, my explanation is probably a little lacking in some details but essentially the answer is YES ![]()