wispCodes

iptables scan monitoring with nmap

Jan 10th, 2019
174
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.31 KB | None | 0 0
  1. iptables -F                                 # flush all rules
  2. iptables -I INPUT 1 -s 10.0.0.19 -j ACCEPT  # insert source rule
  3. iptables -I OUTPUT 1 -d 10.0.0.19 -j ACCEPT # insert destination rule
  4.  
  5. iptables -Z                                 # zero all counters
  6. nmap -sT 10.0.0.19                          # run a basic TCP scan
  7.  
  8. iptables -nv -L                             # view traffic results as list
Advertisement
Add Comment
Please, Sign In to add comment