summaryrefslogtreecommitdiffstats
path: root/sbin/natd/samples/natd.cf.sample
blob: 46eee910fd31db48016fab3ad239eb5099ece966 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
#
# Configuration file for natd.
#
#
# Logging to /var/log
#
log		no
#
# Incoming connections.
#
deny_incoming	no
#
# Use sockets to avoid port clashes.
#
use_sockets	no
#
# Avoid port changes if possible. Makes rlogin work
# in most cases.
#
same_port	yes
#
# Verbose mode. Enables dumping of packets and disables
# forking to background.
#
verbose		no
#
# Divert port. Can be a name in /etc/services or numeric value.
#
port		32000
#
# Interface name or address being aliased. Either one,
# not both is required.
#
# alias_address	192.168.0.1
interface	ep0
#
# Alias unregistered addresses or all addresses.
#
unregistered_only	no
#
# Configure permanent links. If you use host names instead
# of addresses here, be sure that name server works BEFORE
# natd is up - this is usually not the case. So either use
# numeric addresses or hosts that are in /etc/hosts.
#
# Map connections coming to port 30000 to telnet in my_private_host.
# Remember to allow the connection /etc/rc.firewall also.
#permanent_link		tcp my_private_host:telnet 0.0.0.0:0 30000
#
# Map connections coming from host.xyz.com to port 30001 to 
# telnet in another_host.
#permanent_link		tcp another_host:telnet host.xyz.com:0 30001
OpenPOWER on IntegriCloud