What's new

port forward openvpn transmission !

  • SNBForums Code of Conduct

    SNBForums is a community for everyone, no matter what their level of experience.

    Please be tolerant and patient of others, especially newcomers. We are all here to share and learn!

    The rules are simple: Be patient, be nice, be helpful or be gone!

Germain

Occasional Visitor
Hi I'm not able to open portforward! My vpn server have dynamic port..I create the script nat-start and assign transmission on 192.168.1.10
#!/bin/sh



iptables -I FORWARD -i br0 -o tun11 -j ACCEPT

iptables -I FORWARD -i tun11 -o br0 -j ACCEPT

iptables -I FORWARD -i br0 -o vlan1 -j DROP

iptables -I INPUT -i tun11 -j REJECT

iptables -t nat -A POSTROUTING -o tun11 -j MASQUERADE



iptables -I FORWARD -i tun11 -p udp -d 192.168.1.10 --dport 51413 -j ACCEPT

iptables -I FORWARD -i tun11 -p tcp -d 192.168.1.10 --dport 51413 -j ACCEPT

iptables -t nat -I PREROUTING -i tun11 -p tcp --dport 51413 -j DNAT --to-destination 192.168.1.10

iptables -t nat -I PREROUTING -i tun11 -p udp --dport 51413 -j DNAT --to-destination 192.168.1.10

chmod it after!
 

Similar threads

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!
Top