mirror of
https://github.com/adulau/ssldump.git
synced 2024-11-21 17:07:04 +00:00
Extract traffic mirroring commands from docker run scripts
This commit is contained in:
parent
15ad7190fb
commit
850ab0acb3
8 changed files with 8 additions and 56 deletions
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=debian-bullseye
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=debian-buster
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=debian-stretch
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
8
docker/mirror_traffic_to_container.sh
Executable file
8
docker/mirror_traffic_to_container.sh
Executable file
|
@ -0,0 +1,8 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=ubuntu-bionic
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=ubuntu-focal
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=ubuntu-groovy
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
|
@ -1,15 +1,7 @@
|
|||
#!/bin/bash
|
||||
|
||||
local_if=ens3f0
|
||||
container_ip=172.17.0.2
|
||||
ssldump_version=1.4b
|
||||
distribution=ubuntu-xenial
|
||||
|
||||
sudo iptables -t mangle -I PREROUTING 1 -i ${local_if} -j TEE --gateway ${container_ip}
|
||||
sudo iptables -t mangle -I POSTROUTING 1 -o ${local_if} -j TEE --gateway ${container_ip}
|
||||
|
||||
docker run -it ssldump-${distribution}:${ssldump_version}
|
||||
|
||||
sudo iptables -t mangle -D PREROUTING 1
|
||||
sudo iptables -t mangle -D POSTROUTING 1
|
||||
|
||||
|
|
Loading…
Reference in a new issue