port forwarding
Posted: Mon Nov 03, 2014 2:25 pm
hello,
i have a server on debian, it's running OpenVPN server.
current iptables rules:
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 192.168.88.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 192.168.88.0/24 -j SNAT --to-source 81.**.33.**
Debian server:
192.168.88.1
client is assigned an IP:
192.168.88.2
Everything works as it should, but I'm not able to direct port of the outdoor networks 81.**.33.** to the internal network 192.168.88.2
I tried:
iptables -A FORWARD -p tcp -i eth0 -d 81.**.33.** --dport 3389 -j ACCEPT
iptables -t nat -A POSTROUTING -p tcp -d 81.**.33.** --dport 3389 -j DNAT --to-destination 192.168.88.2:3389
does not work, plese help...
i have a server on debian, it's running OpenVPN server.
current iptables rules:
iptables -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
iptables -A FORWARD -s 192.168.88.0/24 -j ACCEPT
iptables -A FORWARD -j REJECT
iptables -t nat -A POSTROUTING -s 192.168.88.0/24 -j SNAT --to-source 81.**.33.**
Debian server:
192.168.88.1
client is assigned an IP:
192.168.88.2
Everything works as it should, but I'm not able to direct port of the outdoor networks 81.**.33.** to the internal network 192.168.88.2
I tried:
iptables -A FORWARD -p tcp -i eth0 -d 81.**.33.** --dport 3389 -j ACCEPT
iptables -t nat -A POSTROUTING -p tcp -d 81.**.33.** --dport 3389 -j DNAT --to-destination 192.168.88.2:3389
does not work, plese help...