JueZ
Hello,
i have a vpn server which i use to connect to the internet in unsecure environments.
Everything is working fine, but i can't access the server under his public ip once connected to the vpn.
When I use the internal ip of the vpn server (10.8.1.1) then it works, but i would like to use also the public one ... .
What config i'm missing?
I'm using shorewall here the configs.
interfaces
#ZONE INTERFACE BROADCAST OPTIONS
net eth0 detect dhcp,tcpflags,logmartians,nosmurfs
vpn tun0 detect routeback,tcpflags,logmartians,nosmurfs
masq
eth0 10.8.1.0/24
tunnels
#TYPE ZONE GATEWAY GATEWAY ZONE
openvpnserver:udp:123 net 0.0.0.0/0
zones
#ZONE TYPE OPTIONS IN OUT
# OPTIONS OPTIONS
fw firewall
net ipv4
vpn ipv4
policy
#SOURCE DEST POLICY LOG LEVEL LIMIT:BURST
$FW net ACCEPT
net all DROP info
vpn $FW ACCEPT
vpn net ACCEPT
vpn vpn REJECT
# The FOLLOWING POLICY MUST BE LAST
all all REJECT info