SpaceInvaders

libvirt iptables script?

Jun 13th, 2014
297
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.20 KB | None | 0 0
  1. ]# systemctl status firewalld.service -l
  2. firewalld.service - firewalld - dynamic firewall daemon
  3. Loaded: loaded (/usr/lib/systemd/system/firewalld.service; disabled)
  4. Active: inactive (dead)
  5.  
  6. ]# iptables -L
  7. Chain INPUT (policy ACCEPT)
  8. target prot opt source destination
  9. ACCEPT udp -- anywhere anywhere udp dpt:domain
  10. ACCEPT tcp -- anywhere anywhere tcp dpt:domain
  11. ACCEPT udp -- anywhere anywhere udp dpt:bootps
  12. ACCEPT tcp -- anywhere anywhere tcp dpt:bootps
  13.  
  14. Chain FORWARD (policy ACCEPT)
  15. target prot opt source destination
  16. ACCEPT all -- anywhere 192.168.122.0/24 ctstate RELATED,ESTABLISHED
  17. ACCEPT all -- 192.168.122.0/24 anywhere
  18. ACCEPT all -- anywhere anywhere
  19. REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
  20. REJECT all -- anywhere anywhere reject-with icmp-port-unreachable
  21.  
  22. Chain OUTPUT (policy ACCEPT)
  23. target prot opt source destination
  24. ]#
Advertisement
Add Comment
Please, Sign In to add comment