[SOLVED] NAT and Port Forwarding

YaseenKamala

Member
Feb 2, 2021
158
5
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: