Enable Port Forwarding on the server
- Connect to the server :
ssh pi@10.0.0.1
- Add these two lines to the file /etc/ssh/sshd_config
AllowTcpForwarding yes
GatewayPorts yes
- Reload the sshd daemon :
sudo systemctl restart sshd
Forwarding the port from the attacker machine
- Run the command :
ssh -R 0.0.0.0:5020:0.0.0.0:5020 pi@10.0.0.1
Run the mitm program from the attacker machine
Modify the ip address
- From the web interface :
http://10.0.0.1:1881/device
- Modify the ip address of the slave to :
172.19.0.1:5020
The red button should turn green if it is working