home *** CD-ROM | disk | FTP | other *** search
/ Personal Computer World Interactive 1996 May / PCW_MAY_1996_LINUX_UKUUG.ISO / etc / udprelay.conf < prev    next >
Text File  |  1995-10-29  |  2KB  |  51 lines

  1. # This is /etc/udprelay.conf.
  2. # It controls the firewall UDP relay program udprelay
  3. #
  4. # Format of entries:
  5. #
  6. # relay <host1> <port1> <localport1> <host2> <port2> <localport2> [oneway]
  7. #
  8. # Relay packets coming from <host1>:<port1> to our local port <localport1>
  9. # from our local port <localport2> to <host2>:<port2>. Pass return packets
  10. # back if "oneway" is not specified.
  11. #
  12. # encapsulate <host1> <localport>
  13. #
  14. # Receive encapsulated packets from <host1> on our localport <localport1>.
  15. # Destination host and port are encapsulated in the package. To create
  16. # encapsulated packets, compile with -Dsendto=Rsendto -Drecvfrom=Rrecvfrom
  17. # and link with -ludprelay. Which hosts are reached directly and which
  18. # hosts through udprelay is the configured with file /etc/udprelayc.conf.
  19. #
  20. # Source hosts (<host1>) may be specified in the forms "host.local.domain",
  21. # "*.local.domain", "192.168.2.3" and "192.168.1.0 mask 255.255.255.0".
  22. # Ports may be specified numerically or as UDP service names listed in
  23. # /etc/services.
  24. # Source ports (<port1>)  may be wildcarded as "*", meaning any port.
  25. # Local sending ports (<localport2>) may be specified as "any", meaning
  26. # to get a seperate available port for each session and to pass return
  27. # traffic reaching this port back to the initiator of the session.
  28. #
  29. # Example entries:
  30. #
  31. # Relay traffic back and forth between two NTP servers
  32. #    relay    clock1.local.domain ntp ntp    clock.outer.domain ntp any
  33. # Send queries from any local NTP query client in the local domain
  34. # to the NTP server outside, and return repsonses
  35. #    relay    *.local.domain ntp ntp    clock.outer.domain ntp any
  36. # Send queries from any outside NTP client to our local NTP server,
  37. # and return responses. (This must come after example 2 or example 2
  38. # will never be utilized.)
  39. #    relay    * * 123    clock.local.domain 123 any
  40. # Forward archie queries from a specific local host to rutgers.
  41. # Many archie queries can be going on simultaneously from different
  42. # ports on the local host, using different local ports an the firewall.
  43. #    relay    host.local.com * 1525    archie.rutgers.edu 1525 any
  44. #    relay    host.local.com * 191    archie.rutgers.edu 191 any
  45. # Allow encapsulated packets from localhost and local C subnet 192.168.1.0
  46. #    encapsulate    127.0.0.1 mask 255.255.255.255 udprelay
  47. #    encapsulate    192.168.1.0 mask 255.255.255.0 udprelay
  48. #
  49. encapsulate    127.0.0.1 mask 255.255.255.255 udprelay
  50. ##
  51.