What's new

open VPN Client with firewall-start iptables problem

trollmari

New Around Here
Hi,
i use the VPN service with AirVPN and the Asus68ac (merlin firmware).
Client works... no problem.

Now I would like to open a port to specific destination inside my LAN.

So here what i do:
1. Run AirVPN Service with the AC68u..worked
2.configured my Forwarding rules at Airvpn.org Port: 10024. ...workded
3. Configured my firewall-start script with this Iptables rules:
iptables -I FORWARD -i tun11 -p udp -d 192.168.1.130 --dport 10024 -j ACCEPT
iptables -I FORWARD -i tun11 -p tcp -d 192.168.1.130 --dport 10024 -j ACCEPT
iptables -t nat -I PREROUTING -i tun11 -p tcp --dport 10024 -j DNAT --to-destination 192.168.1.130
iptables -t nat -I PREROUTING -i tun11 -p udp --dport 10024 -j DNAT --to destination 192.168.1.130

..worked. but not as aspected!!
My Problem:
The Port 10024 is now open to all my devices inside my LAN.

I would like to open the port only to 192.168.1.130

Whats wrong with my iptables rules?
Greetz
 

Support SNBForums w/ Amazon

If you'd like to support SNBForums, just use this link and buy anything on Amazon. Thanks!

Sign Up For SNBForums Daily Digest

Get an update of what's new every day delivered to your mailbox. Sign up here!
Back
Top