Home Page › Forums › Network Management › ZeroShell › Big problem with multiwan masquerading translating to bad IP › Reply To: Big problem with multiwan masquerading translating to bad IP
Those problems seems related to Linux and BSD. I’ve seen similar problems inside PFsense, based on BSD 7.1.
The problem is that those systems have not been tested correctly with multiwan setups.
Multiwan seems simple in the beginning, but is often complex and buggy in the end.
Here is what i did on an openwrt install to avoid problems :
# iptables -t nat -A POSTROUTING -o $WAN -j MASQUERADE
iptables -t nat -A POSTROUTING -o $WAN -j SNAT –to-source 65.xxx.xxx.xxx
you’ll need to adapt according to your needs. to-source is your wan public IP address.
replace $WAN by the name of your wan interface.
I do not know where are located those commands inside Zeroshell. You’ll have to find the right file.
This works only if you have a static IP. If not you’ll need to make a script to dynamically configure iptables.