VPN Server Configuration

Gathering of links and reference along the configuration. In short just follow this tutorial step by step, with optional for you to write those cofigurable commands as seen in Firewall and sysctl section into shell script for convenience.

Original States of accept_redirects

root@mail:~/Conf/vpn# for vpn in /proc/sys/net/ipv4/conf/*; do echo "$vpn -> " `cat $vpn/accept_redirects`; done
/proc/sys/net/ipv4/conf/all ->  0
/proc/sys/net/ipv4/conf/default ->  0
/proc/sys/net/ipv4/conf/eth0 ->  1
/proc/sys/net/ipv4/conf/eth1 ->  0
/proc/sys/net/ipv4/conf/lo ->  1

Original States of send_redirects

root@mail:~/Conf/vpn# for vpn in /proc/sys/net/ipv4/conf/*; do echo "$vpn -> " `cat $vpn/send_redirects`; done
/proc/sys/net/ipv4/conf/all ->  1
/proc/sys/net/ipv4/conf/default ->  1
/proc/sys/net/ipv4/conf/eth0 ->  1
/proc/sys/net/ipv4/conf/eth1 ->  1
/proc/sys/net/ipv4/conf/lo ->  1