|
|
|
@ -6,9 +6,9 @@ apt update
|
|
|
|
|
apt install wireguard
|
|
|
|
|
|
|
|
|
|
# to enable kernel relaying/forwarding ability on bounce servers
|
|
|
|
|
echo "net.ipv4.ip_forward = 1" >> /etc/sysctl.conf
|
|
|
|
|
echo "net.ipv4.conf.all.proxy_arp" >> /etc/sysctl.conf
|
|
|
|
|
sudo sysctl -p /etc/sysctl.conf
|
|
|
|
|
echo "net.ipv4.ip_forward = 1" >>/etc/sysctl.conf
|
|
|
|
|
echo "net.ipv4.conf.all.proxy_arp = 1" >>/etc/sysctl.conf
|
|
|
|
|
sysctl -p /etc/sysctl.conf
|
|
|
|
|
|
|
|
|
|
# to add iptables forwarding rules on bounce servers
|
|
|
|
|
iptables -A INPUT -m conntrack --ctstate RELATED,ESTABLISHED -j ACCEPT
|
|
|
|
|