home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Personal Computer World Interactive 1996 May
/
PCW_MAY_1996_LINUX_UKUUG.ISO
/
etc
/
udprelay.conf
< prev
next >
Wrap
Text File
|
1995-10-29
|
2KB
|
51 lines
# This is /etc/udprelay.conf.
# It controls the firewall UDP relay program udprelay
#
# Format of entries:
#
# relay <host1> <port1> <localport1> <host2> <port2> <localport2> [oneway]
#
# Relay packets coming from <host1>:<port1> to our local port <localport1>
# from our local port <localport2> to <host2>:<port2>. Pass return packets
# back if "oneway" is not specified.
#
# encapsulate <host1> <localport>
#
# Receive encapsulated packets from <host1> on our localport <localport1>.
# Destination host and port are encapsulated in the package. To create
# encapsulated packets, compile with -Dsendto=Rsendto -Drecvfrom=Rrecvfrom
# and link with -ludprelay. Which hosts are reached directly and which
# hosts through udprelay is the configured with file /etc/udprelayc.conf.
#
# Source hosts (<host1>) may be specified in the forms "host.local.domain",
# "*.local.domain", "192.168.2.3" and "192.168.1.0 mask 255.255.255.0".
# Ports may be specified numerically or as UDP service names listed in
# /etc/services.
# Source ports (<port1>) may be wildcarded as "*", meaning any port.
# Local sending ports (<localport2>) may be specified as "any", meaning
# to get a seperate available port for each session and to pass return
# traffic reaching this port back to the initiator of the session.
#
# Example entries:
#
# Relay traffic back and forth between two NTP servers
# relay clock1.local.domain ntp ntp clock.outer.domain ntp any
# Send queries from any local NTP query client in the local domain
# to the NTP server outside, and return repsonses
# relay *.local.domain ntp ntp clock.outer.domain ntp any
# Send queries from any outside NTP client to our local NTP server,
# and return responses. (This must come after example 2 or example 2
# will never be utilized.)
# relay * * 123 clock.local.domain 123 any
# Forward archie queries from a specific local host to rutgers.
# Many archie queries can be going on simultaneously from different
# ports on the local host, using different local ports an the firewall.
# relay host.local.com * 1525 archie.rutgers.edu 1525 any
# relay host.local.com * 191 archie.rutgers.edu 191 any
# Allow encapsulated packets from localhost and local C subnet 192.168.1.0
# encapsulate 127.0.0.1 mask 255.255.255.255 udprelay
# encapsulate 192.168.1.0 mask 255.255.255.0 udprelay
#
encapsulate 127.0.0.1 mask 255.255.255.255 udprelay
##