Advertisement
Guest User

Untitled

a guest
Aug 7th, 2015
266
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.96 KB | None | 0 0
  1. # cat /etc/firehol/firehol.conf
  2. version 6
  3.  
  4. inet_face=inet0
  5. lan_face=lan0
  6.  
  7.  
  8. lan_ips="192.168.1.0/24"
  9. lan_services="ssh dns dhcp icmp http https"
  10. inet_services="http https"
  11.  
  12. dnat to 192.168.1.20 inface ${inet_face} proto tcp dport 49020
  13. dnat to 192.168.1.20 inface ${inet_face} proto udp dport 49020
  14.  
  15. #interface ${lan_face} lan
  16. # policy accept
  17.  
  18. interface ${lan_face} nolan
  19. policy return
  20. server dhcp accept
  21.  
  22. interface ${lan_face} lan src "${lan_ips}"
  23. policy reject
  24. server "${lan_services}" accept
  25. client all accept
  26.  
  27. interface ${inet_face} inet src not "${home_ips} ${UNROUTABLE_IPS}"
  28. protection strong 10/sec 10
  29. server "${inet_services}" accept
  30. client all accept
  31.  
  32.  
  33. router4 lan2inet inface ${lan_face} outface ${inet_face}
  34. masquerade
  35. route all accept
  36.  
  37. router4 inet2lan inface ${inet_face} outface ${lan_face}
  38. route ident reject with tcp-reset
  39. route custom forward "tcp/49020 udp/49020" default accept
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement