We have 3 Public IP’s on our WAN, and 2 LAN networks.
LAN 1 : 10.0.0.0 [DHCP: 10.0.0.2-10.0.0.254]
LAN 2 : 11.0.0.0 [DHCP: 10.0.0.2-11.0.0.254]
We have been attempting to configure sNAT so that traffic from each LAN routes follows the route of a specific Public IP. We cannot see IP Ranges in the Local Host dropdown.
How can we configure our sNAT for a Range per IP Alias.
HOw many NICs have your NethServer instance? This one is your gateway?
Your WAN has three public ip adress… But it’s 3 phisycal links, or these 3 ip are on 1 link only?
@filippo_carletti that is exactly what I need, I have added it to the configuration and reloaded/restarted the shorewall service, however when checking my public IP it is still returning the .178. Any ideas?
dnsmasq supports sending queries with a custom source ip, but nethserver doesn’t allow that particular option.
Again, I’d try the syntax to see if it does what you need, then we can develop an enhancement.
You have to search /etc/dnsmasq.conf for the line: server=8.8.8.8 (or your dns server)
and modify it to server=8.8.8.8@198.179.110.178
Then restart the service: service dnsmasq restart
Again @filippo_carletti, you are the best! I believe these would be definite feature to add to NethServer.
This was specifically useful for us, as we use OpenDNS for content filtering on our network, and it binds per IP, instead of having to have two accounts now, we were able to send DNS Requests out via that IP and keep a single account for OpenDNS.
Creating a custom template to “fix” the source-ip is not as easy as the masq template.
I’m thinking about supporting this feature by default.
Please give me some time to work on this issue.