I need help for masquerading setup

znadgenk

New Member
Apr 28, 2022
10
0
1
Hello im a beginner proxmox user and i want to make my one public ip share to another vm with masuerding setup, and im so confuse there still no connections on windows server can somebody help meh? by the way im using an bare metal services on a vultr
theres the picture how i input my ips to windows server

and this my network config

auto lo
iface lo inet loopback
iface lo inet6 loopback

auto enp1s0
iface enp1s0 inet static
address xxx.xxx.112.20/23
gateway xxx.xxx.112.1
up route add -net xxx.xxx.112.20 netmask 255.255.254.0 gw xxx.xxx.112.1 dev enp1s0

auto vmbr0
iface vmbr0 inet static
address 10.1.1.1/23
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.1.1.0/23' -o enp1s0 -j MASQUERADE
post-down iptables -t nat -D POSTROUTING -s '10.1.1.0/23' -o enp1s0 -j MASQUERADE
Screenshot_8.png
 
Just set the gateway on your windows VM to 10.1.1.1 and that should give your windows VM internet access
 
s
Just set the gateway on your windows VM to 10.1.1.1 and that should give your windows VM internet access
still doesnt work but but when i installed debian i managed to test the ping to google which means the internet is fine....
any solve pls someone help meee
 

Attachments

  • Screenshot_9.png
    Screenshot_9.png
    107.1 KB · Views: 8
So have you amended all your network settings ?

is vmbr0 now on 10.20.30.1?

did you update the itables rules from 10.1.1.0 to 10.20.30.0?

if you do a traceroute from VM to 1.1.1.1 does it follow the expected path?
 
So have you amended all your network settings ?

is vmbr0 now on 10.20.30.1?

did you update the itables rules from 10.1.1.0 to 10.20.30.0?

if you do a traceroute from VM to 1.1.1.1 does it follow the expected path?
Yess i changed the vmbr0 to 10.20.30.1
Im not sure im changed the itable rules how i can update it? Sorry im still a beginner
 
Sorry meant iptables rules

You will have to edit the /etc/network/interfaces file

Then restart networking
 

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!