Home > other >  It under the local network, how to configure iptables, let TongWai network virtual machine
It under the local network, how to configure iptables, let TongWai network virtual machine

Time:09-26

Do the bridge before experiment, it is outside the virtual machine unicom network
1, create a bridge, start a virtual machine, card is bound to the bridge on
2, configure the IP address of the bridge, the gateway of the virtual machine to bridge IP
3, the iptables rules do snat

The problems at present:
In it the local environment, the configuration of the virtual machine bridge IP gateway for the virtual machine, configure iptables snat, virtual machine blocked outside the network;
Initiated by tcpdump caught, such as virtual machine ping outside network, return package can be to the host machine, but can not return to the virtual machine;

Please the great god analysis to analyze the reason, thank you ~ ~ ~

CodePudding user response:

Initial suspicion is resulting in a namespace network isolation, mark
  •  Tags:  
  • it
  • Related