Proxying VM

Discussion in 'Proxmox VE: Networking and Firewall' started by PintsizedSix40, May 18, 2019.

Tags:
  1. PintsizedSix40

    PintsizedSix40 New Member

    Joined:
    May 18, 2019
    Messages:
    6
    Likes Received:
    0
    Hey, I'm wondering if there is any way to route all requests (such as routing web traffic AND hosting a web server) through another server. This server has a static, dedicated IP and is relatively cheap, so I'd like to utilize it to give public IPs to my VMs. I can run anything on the proxy server, but I'd like to have the proxy route requests outside of the VM transparently. If anything like this is possible, please let me know.
     
  2. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,695
    Likes Received:
    329
    Could you elaborate further, e.g. some use cases.

    In general, you can always use an ingress router like traefik or use the more general approach via Apache and Nginx.
     
  3. PintsizedSix40

    PintsizedSix40 New Member

    Joined:
    May 18, 2019
    Messages:
    6
    Likes Received:
    0
    I basically want to proxy all requests through a proxy server (this server only has one client connected) that will not only allow the client to make connections normally (ex. browsing the web), but also forwards ports to the client. For example, say the proxy server's IP is 1.2.3.4 and the client has a web server running on port 80. If I go to 1.2.3.4 in my web browser, I should be able to see whatever is on the client's web server. I need more than just HTTP though. Any port opened on the client should be accessible through the proxy's IP.
     
    #3 PintsizedSix40, May 19, 2019
    Last edited: May 19, 2019
  4. LnxBil

    LnxBil Well-Known Member

    Joined:
    Feb 21, 2015
    Messages:
    3,695
    Likes Received:
    329
    Okay, traefik only works for HTTP(s), so it may not solve your problems.

    If you have only one backend and one frontend IP, you could just DNAT all ports directly, but you will not have a proxy daemon then.
     
  5. PintsizedSix40

    PintsizedSix40 New Member

    Joined:
    May 18, 2019
    Messages:
    6
    Likes Received:
    0
    Hey, I kind of found an answer to this. SSH tunneling lets you proxy all requests, as well as forwarding ports. All i have to do is find out how to tunnel for a specific network device (or find another way to make it work).
     
  6. PintsizedSix40

    PintsizedSix40 New Member

    Joined:
    May 18, 2019
    Messages:
    6
    Likes Received:
    0
    Installing psSense let me run "ssh -fnN -R3389:192.168.8.10:3389 root@(aws server's ip)" to be able to RDP to my Windows Server (running on 192.168.8.10) from my aws ip. 192.168.8.1 is my virtual router. This setup seems to work perfectly and hopefully I can get a proxy working for a specific IP.
     
    #6 PintsizedSix40, May 21, 2019
    Last edited: May 21, 2019
  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice