I would like to use 192.168.11.1, but use global IP address againt my will.
I would not like to use global IP address in router when Im usging web browser and client applications.
How do I do ?
Now: my web browser(my global IP address) -> the internet
I'd like to:my web browser(private IP address(192.168.11.1)) -> my global IP address -> the internet
Thank you for reading my question.
My machine. Debian9(kvm and vps)
virtual nic ens3 -> global IP address
virtual nic ens4 -> 192.168.11.1/24
# route
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
0.0.0.0 192.168.11.1 255.255.255.0 UG 0 0 0 ens4
default {global ip gateway} 0.0.0.0 UG 0 0 0 ens3
localnet 0.0.0.0 255.255.254.0 U 0 0 0 ens3
192.168.11.0 0.0.0.0 255.255.255.0 U 0 0 0 ens4
# iptables -t nat -A POSTROUTING -s 192.168.11.0/24 -o ens3 -j MASQUERADE