Forums

Re: How to setup a VM Gateway like Whonix but for a generic VPN

Ok, so you'll need to adapt the config a little to suit your interfaces and addresses, but essentially it should do what you want, or at least all the bits are there.

The config should be "firehol.conf" and needs to go in /etc/firehol/ , then you need to tweak to suit. Then "firehol try" will give it a go, make sure you've disabled any other firewalls or custom routes first. 
There are two things at play in the config, the iptables routing, and the "firehol" masquerading (nat).

So iptables -t mytable sho...
Ok, so you'll need to adapt the config a little to suit your interfaces and addresses, but essentially it should do what you want, or at least all the bits are there.

The config should be "firehol.conf" and needs to go in /etc/firehol/ , then you need to tweak to suit. Then "firehol try" will give it a go, make sure you've disabled any other firewalls or custom routes first. 
There are two things at play in the config, the iptables routing, and the "firehol" masquerading (nat).

So iptables -t mytable sho...

About the author

Mad Penguin

Mad Penguin is a Linux forum administrator and moderator.