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!
#!/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!