Skip to content

Instantly share code, notes, and snippets.

@chaosong
Created April 8, 2013 04:07
Show Gist options
  • Save chaosong/5334172 to your computer and use it in GitHub Desktop.
Save chaosong/5334172 to your computer and use it in GitHub Desktop.
tcpcopy interceptor exclude office ip section
#!/bin/bash
sudo modprobe ip_queue
sudo iptables -I OUTPUT -p tcp --sport 8080 -j QUEUE
sudo iptables -I OUTPUT -d 192.168.98.0/24 -j ACCEPT
sudo intercept
sudo iptables -F OUTPUT
@chaosong
Copy link
Author

source:

sudo tcpcopy -x 8080-192.168.aaa.bbb:8080

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment