Hello, guys!
Here is the situation:
I have rented VDS with one IP. I have tried all the manual, that I find - It's wont working.
in /etc/network/interfaces
I google google google for two days already about 18 hours a day, and best of all i have got playing with it - it's that ping to 12.12.12.65 start works, but no more, the dns wont working.. I a like a maniac, almost falling asleep but cant sleep before i fix it. Where should i look?
I found an article the man make a proxy on one vm, but it doesn't looks like good solution..
Here is the situation:
I have rented VDS with one IP. I have tried all the manual, that I find - It's wont working.
in /etc/network/interfaces
Code:
auto lo
iface lo inet loopback
iface lo inet6 loopback
# The primary network interface with IP
allow-hotplug enp5s0
auto enp5s0
iface enp5s0 inet static
address 12.12.12.65/32
netmask 255.255.255.224
gateway 12.12.12.1
dns-nameservers 1.1.1.1
# Bridge with NAT forwarding from a private subnet
auto vmbr0
iface vmbr0 inet static
address 192.168.175.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 '192.168.175.0/24' -o enp5s0 -j MASQUERADE
post-up iptables -t raw -I PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t raw -D PREROUTING -i fwbr+ -j CT --zone 1
post-down iptables -t nat -D POSTROUTING -s '192.168.175.0/24' -o enp5s0 -j MASQUERADE
I found an article the man make a proxy on one vm, but it doesn't looks like good solution..