In CentOS 7, I install docker and the ifconfig command show the ip tables
> ifconfig
docker0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.1.1 netmask 255.255.255.0 broadcast 0.0.0.0
ether 02:42:be:b3:0c:4c txqueuelen 0 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
ens33: flags=4163<UP,BROADCAST,RUNNING,MULTICAST> mtu 1500
inet 192.168.200.51 netmask 255.255.255.0 broadcast 192.168.200.255
inet6 fe80::66f:c6c7:d994:e992 prefixlen 64 scopeid 0x20<link>
ether 00:0c:29:57:00:09 txqueuelen 1000 (Ethernet)
RX packets 34 bytes 5821 (5.6 KiB)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 58 bytes 7677 (7.4 KiB)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
virbr0: flags=4099<UP,BROADCAST,MULTICAST> mtu 1500
inet 192.168.122.1 netmask 255.255.255.0 broadcast 192.168.122.255
ether 52:54:00:85:e5:d9 txqueuelen 1000 (Ethernet)
RX packets 0 bytes 0 (0.0 B)
RX errors 0 dropped 0 overruns 0 frame 0
TX packets 0 bytes 0 (0.0 B)
TX errors 0 dropped 0 overruns 0 carrier 0 collisions 0
Then I execute following command to connect docker0 and ens33
iptables -I INPUT 1 -i docker0 -j ACCEPT
However on windows 10 I have no idea of the same functional command ,iptables in linux.
> ipconfig
Windows IP Configuration
Ethernet adapter vEthernet (DockerNAT):
Connection-specific DNS Suffix.:
Link-local IPv6 Adress . . . . : fe80::a9a7:f59e:48dc:ff5f%14
IPv4 Address . . . . . . . . . : 10.0.75.1
Subnet Mask . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . :
Ethernet adapter Ethernet0:
Connection-specific DNS Suffix. :
Link-local IPv6 Address . . . . : fe80::1091:20e7:135a:3e3f%2
IPv4 Addres. . . . . . . . . . : 192.168.200.51
Subnet Mask . . . . . . . . . : 255.255.255.0
Default Gateway . . . . . . . . : 192.168.200.2
The above ipconfig command show the windows 10 ip configuration. Pls, inform me how to bind the Ethernet0 and vEthernet on windows 10 like linux iptables command.
Your any reply will be deeply appreciated.
Best regards.