You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Then start the mirror.
The image I use is based on kalilinux/kali-last-release, added some tools, no other changes.
sudo docker run -itd --network my_test xx/kali-linux:v1
After entering the container, execute the curl command to view the public network ip.
# curl https://cip.cc
IP : xxx.xxx.0.76
Because the --opt com.docker.network.host_ipv4=192.168.88.115 parameter exists.
The second gateway I am using now should get the public IP of xxx.xxx.252.105.
I tried to use tcpdump to capture the data packets of the network card of the physical machine, and compared the data packets of the same http request inside the container and outside the container, what is the difference.
Starting from 4500, two contents, the source IP is 192.168.88.115, and the destination IP is 122.51.162.249. The http body is all the same.
The source mac addresses are all d8:cb:8a:fa:87:8d.
It is successfully sent outside the container, and the IP of xxx.xxx.252.105 is obtained. The destination MAC is 00:e2:69:29:ed:18.
It is sent in the container, and the IP of the error xxx.xxx.0.76 is obtained, and the destination MAC is 48:0e:ec:51:eb:39.
How should I configure it to achieve my needs.
The text was updated successfully, but these errors were encountered:
My English is very poor, I use machine translation, please forgive me if there is any misunderstanding.
My server uses one network port, and the switch in front of the network port has two routers.
The addresses are:
I set up two static IPs, corresponding to two gateways respectively.
My requirement is that some mirrors use 192.168.11.1 as the gateway, and some mirrors use 192.168.88.127 as the gateway.
First is the netplan configuration of my ubuntu server.
A default route was manually added.
When I use the following command, I get the public network ip of the default gateway.
When I use the following command, I get the public network ip of the second gateway.
So far it has met my expectations. Next use the docker container.
First create the network.
Then start the mirror.
The image I use is based on kalilinux/kali-last-release, added some tools, no other changes.
After entering the container, execute the curl command to view the public network ip.
Because the
--opt com.docker.network.host_ipv4=192.168.88.115
parameter exists.The second gateway I am using now should get the public IP of xxx.xxx.252.105.
I tried to use tcpdump to capture the data packets of the network card of the physical machine, and compared the data packets of the same http request inside the container and outside the container, what is the difference.
Starting from 4500, two contents, the source IP is 192.168.88.115, and the destination IP is 122.51.162.249. The http body is all the same.
The source mac addresses are all d8:cb:8a:fa:87:8d.
It is successfully sent outside the container, and the IP of xxx.xxx.252.105 is obtained. The destination MAC is 00:e2:69:29:ed:18.
It is sent in the container, and the IP of the error xxx.xxx.0.76 is obtained, and the destination MAC is 48:0e:ec:51:eb:39.
How should I configure it to achieve my needs.
The text was updated successfully, but these errors were encountered: