daily pastebin goal
38%
SHARE
TWEET

Untitled

a guest Apr 16th, 2018 50 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. TCP_TRAFFIC_PORT=5015
  2. PROXY_PORT=443
  3.  
  4. _apply_outbound_rules() {
  5.     # Forward outgoing packets through the proxy port
  6.     sudo iptables -t nat
  7.         -I OUTPUT 1
  8.         -p tcp --destination-port $TCP_TRAFFIC_PORT
  9.         -j DNAT --to-destination :$PROXY_PORT
  10.  
  11.     # Send packets to 5015 port after forwarding (this is likely the rule to fix)
  12.     sudo iptables -t nat
  13.         -I POSTROUTING 1
  14.         -p tcp --destination-port $PROXY_PORT
  15.         -j SNAT --to-source :$TCP_TRAFFIC_PORT
  16. }
  17.  
  18. apply_outbound_rules
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top