silvianismo 0 Posted ... #!/bin/sh iptables -t nat -A POSTROUTING -o tun15 -j MASQUERADE iptables -I FORWARD -i tun15 -p udp -d 192.168.1.40 --dport 61841 -j ACCEPTiptables -I FORWARD -i tun15 -p tcp -d 192.168.1.40 --dport 61841 -j ACCEPTiptables -t nat -I PREROUTING -i tun15 -p tcp --dport 61841 -j DNAT --to-destination 192.168.1.40iptables -t nat -I PREROUTING -i tun15 -p udp --dport 61841 -j DNAT --to-destination 192.168.1.40iptables -I FORWARD -i tun15 -p udp -d 192.168.1.1 --dport 61840 -j ACCEPTiptables -I FORWARD -i tun15 -p tcp -d 192.168.1.1 --dport 61840 -j ACCEPTiptables -t nat -I PREROUTING -i tun15 -p tcp --dport 61840 -j DNAT --to-destination 192.168.1.1iptables -t nat -I PREROUTING -i tun15 -p udp --dport 61840 -j DNAT --to-destination 192.168.1.1iptables -I FORWARD -i br0 -o tun15 -j ACCEPTiptables -I FORWARD -i tun15 -o br0 -j ACCEPTiptables -I FORWARD -i br0 -o vlan1 -j DROPiptables -I INPUT -i tun15 -j REJECT whats is wrong with it.. Does he have a simple command to join all my open port to my preconfigure port on airvpn.. Thanks Quote Share this post Link to post
go558a83nk 364 Posted ... Yess! So what is it you're trying to accomplish? You have a server on the router you're trying to make available remotely? Quote Share this post Link to post
nick75 25 Posted ... Hi, Most if not all routers won't allow traffic from the internet onto the LAN-facing interface.You'll have to allow remote management in your router and access it on your public IP address. 1 silvianismo reacted to this Quote Share this post Link to post
nick75 25 Posted ... not able.. :S Only able to open 1 port.. This is too vague, can you clarify? Quote Share this post Link to post
silvianismo 0 Posted ... I want to use more than one port.. I'm not able to configure 2 ports! Thanks ( Scuse me for my English ) Quote Share this post Link to post
go558a83nk 364 Posted ... I want to use more than one port.. I'm not able to configure 2 ports! Thanks ( Scuse me for my English ) you certainly can. it's just that you can't forward to the router itself it seems. Quote Share this post Link to post
silvianismo 0 Posted ... 2 port from my 192.168.1.40.. and 1 port from ....197 I try many rules but always have router conflict route.. Many thanks Quote Share this post Link to post
nick75 25 Posted ... You cannot access the router itself through the VPN (or so it seems). Quote Share this post Link to post
silvianismo 0 Posted ... Just create an other port forward on other ip of my lan.. Quote Share this post Link to post
023 0 Posted ... nobody..? you need the router ip adres put on dmz Quote Share this post Link to post