[SOLVED] NAT and Port Forwarding

YaseenKamala

Member
Feb 2, 2021
158
4
23
Paris
Hello All,

I am testing a dedicated server hosted with datapacket.com on PVE, could you please confirm if my configuration are correct? The reason I am asking your help is because with this configuration I have a Pfsense VM but not able to go outside/internet and can't access it's web interface too? (from outside)

1651044468323.png

Here are my interface:

Code:
auto enp2s0f0
iface enp2s0f0 inet static
        address 45.136.xxx.xxx
        netmask 255.255.255.224
        gateway 45.136.xxx.xxx

auto vmbr0
#private sub network
iface vmbr0 inet static
        address  10.10.10.1
        netmask  255.255.255.0
        bridge-ports none
        bridge-stp off
        bridge-fd 0

        post-up   echo 1 > /proc/sys/net/ipv4/ip_forward
        post-up   iptables -t nat -A POSTROUTING -s '10.10.10.0/24' -o enp2s0f0 -j MASQUERADE
        post-down iptables -t nat -D POSTROUTING -s '10.10.10.0/24' -o enp2s0f0 -j MASQUERADE

Iptables list:
1651045262257.png


Thanks for your help and have a nice day.

KAMALA
 
Last edited:

About

The Proxmox community has been around for many years and offers help and support for Proxmox VE, Proxmox Backup Server, and Proxmox Mail Gateway.
We think our community is one of the best thanks to people like you!

Get your subscription!

The Proxmox team works very hard to make sure you are running the best software and getting stable updates and security enhancements, as well as quick enterprise support. Tens of thousands of happy customers have a Proxmox subscription. Get yours easily in our online shop.

Buy now!