[Solved]
Apr 06, 2017, 03:48 PM
(This post was last modified: Apr 13, 2017, 01:42 PM by pradeep.)
Hello
Brilliant post on VPN Split tunnel. In the iptables.sh file only one IP is allowed. Once openvpn is active, all communication to other IPs (virtual) are blocked and dropped. Can anyone help me how to enable other IPs on the server?
I played around with these end of the script, but it failed.
iptables -A INPUT -p tcp -s x.x.x.x -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp -d x.x.x.x -j ACCEPT
iptables -A INPUT -p tcp -s y.y.y.y -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp -d y.y.y.y -j ACCEPT
In case I add additional IPs to LOCALIP, the communication is not routed through VPN.
export LOCALIP="a.a.a.a,x.x.x.x,y.y.y.y"
Please help me enable other IPs attached to the server.
Thanks a lot.
Brilliant post on VPN Split tunnel. In the iptables.sh file only one IP is allowed. Once openvpn is active, all communication to other IPs (virtual) are blocked and dropped. Can anyone help me how to enable other IPs on the server?
I played around with these end of the script, but it failed.
iptables -A INPUT -p tcp -s x.x.x.x -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp -d x.x.x.x -j ACCEPT
iptables -A INPUT -p tcp -s y.y.y.y -j ACCEPT
iptables -A OUTPUT -o eth0 -p tcp -d y.y.y.y -j ACCEPT
In case I add additional IPs to LOCALIP, the communication is not routed through VPN.
export LOCALIP="a.a.a.a,x.x.x.x,y.y.y.y"
Please help me enable other IPs attached to the server.
Thanks a lot.