Score:0

How to Port Forward without routing Internet with OpenVPN

mx flag

How i install OpenVPN

I install OpenVPN on ubuntu server with https://github.com/Nyr/openvpn-install

How i achieve Port Forwarding

iptables -t nat -A PREROUTING -p tcp -m tcp --dport 80:65535 -j DNAT --to-destination 10.8.0.2
iptables -t filter -A INPUT -p tcp -d 10.8.0.2 --dport 80:65535 -j ACCEPT
iptables -t nat -A POSTROUTING -j MASQUERADE

Problem I want to solve

What I want to do is only forward the port from the server to my machine only, I don't want to route my internet through the VPN, I don't want my computer IP to change to the VPN IP, How can I do this?

mangohost

Post an answer

Most people don’t grasp that asking a lot of questions unlocks learning and improves interpersonal bonding. In Alison’s studies, for example, though people could accurately recall how many questions had been asked in their conversations, they didn’t intuit the link between questions and liking. Across four studies, in which participants were engaged in conversations themselves or read transcripts of others’ conversations, people tended not to realize that question asking would influence—or had influenced—the level of amity between the conversationalists.