Advertisement
Guest User

Untitled

a guest
Feb 19th, 2019
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. $ rpm -q firewalld
  2. firewalld-0.6.3-1.fc29.noarch
  3. $ cd /usr/lib/firewalld/zones/
  4. $ cat drop.xml
  5. <?xml version="1.0" encoding="utf-8"?>
  6. <zone target="DROP">
  7. <short>Drop</short>
  8. <description>Unsolicited incoming network packets are dropped. Incoming packets that are related to outgoing network connections are accepted. Outgoing network connections are allowed.</description>
  9. </zone>
  10. $ grep -i icmp *
  11. $
  12.  
  13. $ cat public.xml
  14. <?xml version="1.0" encoding="utf-8"?>
  15. <zone>
  16. <short>Public</short>
  17. <description>For use in public areas. You do not trust the other computers on networks to not harm your computer. Only selected incoming connections are accepted.</description>
  18. <service name="ssh"/>
  19. <service name="mdns"/>
  20. <service name="dhcpv6-client"/>
  21. </zone>
  22. $ sudo iptables-save
  23. ...
  24. -A FWDI_public -p icmp -j ACCEPT
  25. ...
  26. -A IN_public -p icmp -j ACCEPT
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement