Two internet providers are connected to my NethServer.
Users of the local network need to go to the abc.com website through one provider, and to the xyz.com website through another. How can this be implemented on NethServer?
Is it even possible to implement on NethServer?
Well thank you.
But how to do this in my example?
I beg for help, since I tried all the options. Besides, I think someone will come in handy too.
yes I understand this. But none of my rules work.
For example, there is a site “myip.ru”.
Its IP address is 126.96.36.199. I create a firewall rule with parameters:
Action - route to “provider 2”
Source - role green
Destination - host 188.8.131.52
Service - Any
But when I go to this site - it shows my ip-address from the “provider 1”.
Maybe I should still perform some actions?
Please help sort it out. I am new to NethServer, but far from new to networks.
Guys, any idea?
I still cant solve the problem.
If the proxy is enabled, this rule must be set by proxy rules.
Proxy disabled. Never even turned on.
What else could be the problem?
It looks like a firewall is working.
If I change the Action to “DROP” - no one can access the site.
When I switch back to “Route to …” - all traffic routes through one provider.
And it doesn’t matter which provider is listed in the rule.
In the Terminal, run
shorewall show mangle | grep 184.108.40.206
It should output something like:
0 0 MARK all -- ens35 * 0.0.0.0/0 220.127.116.11 /* RULE#41 */ MARK set 0x10000
where ens35 is your green interface and 0x10000 the marker for your wan (look in
db fwrules show 41 where 41 is the RULE# from above.