Every time I restart my openvpn server, I need to manually type the following command, so that the VPN clients can see other devices on the remote network.
Is there anything I can set so that it will remember this setting, or is the only option to just add it to a startup script or somethingCode:iptables -t nat -A POSTROUTING -s 10.8.0.0/24 -o eth0 -j MASQUERADE
I doand then in rc.local (earlier would be better, but I'm lazy)Code:iptables-save > /etc/iptables.save
Code:iptables-restore < /etc/iptables.save
powdarrrmonkey, Is that necessary or will kmonts suggestion do?
Cybernerd, I dont even use iptables as a firewall, i just found that the only way to do what I wanted with openvpn was to envoke that command...
On gentoo, you should be able to use /etc/init.d/iptables save which will dump it into /var/lib/iptables/rules-save and then when /etc/init.d/iptables start is ran on boot up it should load them back as below.
Code:/etc/init.d/iptables save * Saving iptables state /etc/init.d/iptables stop * Saving iptables state * Stopping firewall /etc/init.d/iptables start * Loading iptables state and starting firewall
I thought there might be some gentoo magic.
@RB: it's the same thing: iptables-save just spits out a machine-interpreted dump of the current state. You have to put it somewhere though.
thanks very much for your help... I think I must owe you both a crate of beer for all the continued help
Sounds like a plan
I'm a tennants man; remember that when you're next home
There are currently 1 users browsing this thread. (0 members and 1 guests)