summaryrefslogtreecommitdiff
path: root/ipmasq/rules/A80pfw.rul
blob: de86102dc2d8f917d556f2ebca6f68252aa12940 (plain)
  1. # Define masqueraded hosts with an IP address or a range of addresses:
  2. #
  3. # portfw_ip_<hostname>="<ipaddr>[-<ipaddr>]"
  4. #
  5. # <hostname> must be lowercase
  6. # <ipaddr>-ranges works only with iptables/netfilter (2.4.x kernels)
  7. #
  8. #portfw_ip_foo="10.42.42.1"
  9. #portfw_ip_bar="10.42.42.2"
  10. # Define pools either forwarding port (ranges) to same port on
  11. # masqueraded host or redirecting a single port to another port:
  12. #
  13. # portfw_pool_<pool>="<protocol>[,<protocol>...] <port>[:<port>][,<port>...]] <hostname>"
  14. # portfw_pool_<pool>="<protocol>[,<protocol>...] <port> <hostname> [<dest port>]"
  15. #
  16. # <pool> can only contain lowercase a-z and underscore (_)
  17. # <protocol> is either tcp or udp (or possibly others)
  18. # <port> can be either numbers or service names
  19. # <port>-ranges is denoted with colon (:) and only works with iptables/netfilter (2.4.x kernels)
  20. # <hostname> must be lowercase.
  21. #
  22. #portfw_pool_ssh=" tcp ssh foo"
  23. #portfw_pool_dns=" tcp,udp domain foo"
  24. #portfw_pool_mail=" tcp smtp,pop3,imap foo"
  25. #portfw_pool_mailsec=" tcp ssmtp,pop3s,imaps foo"
  26. #portfw_pool_http=" tcp http,https foo"
  27. #portfw_pool_bar_ssh=" tcp 2222 bar 22"
  28. #portfw_pool_foobar=" tcp 88,8080:8089 bar "
  29. # Requests from inside to the external IP of a portforwarded host will fail.
  30. # Remap local requests so they look like coming from the firewall itself?
  31. # (This works only eith iptables/netfilter)
  32. # (Alternatively you need a local nameserver setup with the inside address)
  33. #
  34. ############ This doesn't work yet...
  35. #PORTFW_REMAP_LOCAL="y"
  36. ############ This doesn't work yet...