VPS with PFS, WAN, Port 80 => Peer to Peer OpenVPN => Home PFS => VLANed VM
-
Hi,
I'm trying to VPS with PFS, WAN, Port 80 => Peer to Peer OpenVPN => Home PFS => VLAN VM.
VLAN to LAN rules works, Peer to Peer OpenVPN Works.
I'm having problems probably with NAT and Rules to make the request on port 80 from the VPS WAN go through the Peer to Peer OpenVPN tunnel and then to Local PFS and the VLANed VM. Apache is up and responding on port 80. Tried Nat Port Forwarding, to the OVPN tunnel, not sure how it should be done, or what exactly should I do to achieve my goal. I would really appreciate any suggestions, thanks. -
@avr A network diagram with ip's would help.
From what you describe, there is a direct path between home virtual machine and vps.You should be able to reach home vm http port from hosted pf cli without any nat rules.
You only need proper routing and firewall rules.Then you need port forwarding from the vps wan to your target. You also need to take care of the replies of the home apache, or they will end up going out from your home default gateway.
It would be much easier if you could install openvpn client on home apache vm and direct connect it to vps pf openvpn server. (and route all traffic through vpn).
If you really need to do this for one box, the latter is much easier to understand and operate.
-
Hi @netblues, thanks for your response.
I agree it would be much easier if I connected to the VPS PFS from the VLANed VM. But the thing is I want to know how to make this using PFS. So let's start with some questions, as I might have gaps of knowledge:
Peer-to-Peer (Site-to-Site) OVPN connections: are they bidirectional? If I wanted to NAT Port Forward to this Interface which 'Redirect target IP' should I use?thanks