Hello there,
I have spent many hours looking for a solution to this, many either did not work (probably my fault) or were not specific enough with the solution. Please let me know if there is a good guide I have missed :)
My issue is I would like to assign a different external ip for each hub. I am running softether on ubuntu (aws) and would like to use the secondary ips on my primary interface(eth0). I am aware the solution involves bridges/iptables/dnsmasq but a step by step solution would be much appreciated.
Thank you in advance.
Assigning a different external ip to each hub.
-
- Posts: 4
- Joined: Thu Aug 18, 2022 6:40 pm
-
- Posts: 1260
- Joined: Sun Feb 14, 2021 10:31 am
Re: Assigning a different external ip to each hub.
Hi, please quote AWS docs supporting these notions:oliver7011 wrote: ↑Thu Aug 18, 2022 6:45 pmI would like to assign a different external ip for each hub. I am running softether on ubuntu (aws) and would like to use the secondary ips on my primary interface(eth0).
- multiple IPs on a single interface, eg. eth0
- multiple external/public IPs on a single AWS instance
-
- Posts: 4
- Joined: Thu Aug 18, 2022 6:40 pm
Re: Assigning a different external ip to each hub.
Sorry perhaps I wasnt clear with my wording, I already have these IPS assigned to my interface but would like each hub to use a separate ip.solo wrote: ↑Fri Aug 19, 2022 2:44 amHi, please quote AWS docs supporting these notions:oliver7011 wrote: ↑Thu Aug 18, 2022 6:45 pmI would like to assign a different external ip for each hub. I am running softether on ubuntu (aws) and would like to use the secondary ips on my primary interface(eth0).
- multiple IPs on a single interface, eg. eth0
- multiple external/public IPs on a single AWS instance
-
- Posts: 1260
- Joined: Sun Feb 14, 2021 10:31 am
Re: Assigning a different external ip to each hub.
Does SoftEther recognize them as separate bridgeable devices? You can check it with:
vpncmd localhost:port /server /password:*** /cmd BridgeDeviceList
//replace: *** with SE admin password
vpncmd localhost:port /server /password:*** /cmd BridgeDeviceList
//replace: *** with SE admin password
-
- Posts: 4
- Joined: Thu Aug 18, 2022 6:40 pm
Re: Assigning a different external ip to each hub.
It does if they are on separate interfaces (eth0, eth1, eth2…) but even after bridging these to the hubs, the external ip given to each client is still that of the main server. Is it possible for it to be a different external ip for each hub.
-
- Posts: 1260
- Joined: Sun Feb 14, 2021 10:31 am
Re: Assigning a different external ip to each hub.
This is definitely doable with soft tap bridges/iptables+nat/dnsmasq. This guide scaled up to the number of required vhubs should help you.oliver7011 wrote: ↑Thu Aug 18, 2022 6:45 pmI am aware the solution involves bridges/iptables/dnsmasq but a step by step solution would be much appreciated.
-
- Posts: 4
- Joined: Thu Aug 18, 2022 6:40 pm
Re: Assigning a different external ip to each hub.
Thanks for the help. For anyone trying this in the future, ensure that both virtual and secure nat in softether is disabled.