Advertisement
Guest User

Untitled

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