Replies: 1 comment
-
Is this how to do it? iptables -t nat -A PREROUTING -i <INTERFACE NAME WITH PUBLIC IP1, e.g., eth1> -j DNAT --to This is just a very basic example and I am sure this will be missing something. You might also need to add a masquerading rule. Something like iptables -t nat -A POSTROUTING -s -o <INTERFACE NAME WITH PUBLIC IP1, e.g., eth1> -j MASQUERADE You can search on these iptable commands to further refine this. Also, search about routing tables, you may also need to modify them. |
Beta Was this translation helpful? Give feedback.
-
Hi I am going crazy so I have a server with it's main ip address and 5 additional ipv4 addresses.
I have tried removing masquerade adding SNAT (or what it is called) iptables stuff.
I am developer in another field not networking all I want is just a vpn service with 6 ip addresses total so each peer has it's own ip.
How to do this using this project that simplified things to the maximum for just 1 peer 1 ip or 6 peers but 1 ip.
I don't see wg-easy covering that scenario of 6 peers 6 diff ip addresses.
6 peers 6 public ip addresses to be more precise*
Beta Was this translation helpful? Give feedback.
All reactions