tommy83 2 Posted ... Hello to everyone. I own a Linksys WRT54G Router with DD-WRT openvpn firmware #16454. No problem in connecting to Airvpn servers, all working very well. But I discovered that I just can't forward any port to any PC behind my router. In my opinion, if all the traffic pass through the vpn port (i.e. 80) then the virtual server configuration of the router is uneffective because I must route a port that is INSIDE the vpn. So I must use IPTABLES for that? And where to put this command? Can Admin or someone else tell me a clear example of this procedure...? Thanks in advance!! Quote Share this post Link to post
tommy83 2 Posted ... Uhm... maybe matter is not so simple? Can't believe nobody is interested?! Quote Share this post Link to post
tommy83 2 Posted ... Surely this won't interest anyone, however my problem is solved now using an IPTABLES command. Quote Share this post Link to post
Guest ergolon Posted ... Actually I *am* interested... got the same problem! It´d be great if you could help me out on this one... Quote Share this post Link to post
Staff 9973 Posted ... Hello! You can achieve your purpose with DNATting. Make sure that you have remotely forwarded the ports you wish. Then please add the following iptables rules for each TCP/UDP port you wish to forward: iptables -t nat -I PREROUTING -i -p tcp --dport -j DNAT --to-destination iptables -t nat -I PREROUTING -i -p udp --dport -j DNAT --to-destination where: - is the port number of the port you want to forward to a device - is the IP address (for example 192.168.x.y) of the device you wish to forward packets on that port to - is the TUN/TAP adapter name (for example tun1) Kind regards 1 bunnyface reacted to this Quote Share this post Link to post
Guest ergolon Posted ... Wow, thanks a lot! I´ll try that once I get https://airvpn.org/index.php?option=com_kunena&func=view&catid=3&id=2377&Itemid=142#4689 sorted out. Quote Share this post Link to post