wispCodes

iptables scan monitoring with nmap

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