####################################################################### # # File: /etc/network.conf for LRP 2.9.8R1 # Brief instructions for use of this file appear in a comments section # at its end. Any commands you want to add as part of a manual # configuration should be placed in the file /etc/netwoek_direct.conf # See that file for instructions about how to use it. # ############################################################################### # Auto configuration bypass (Say NO to use this file) ############################################################################### DIRECT_SETTINGS_ONLY=NO ############################################################################### # Default Settings ############################################################################### VERBOSE=YES MAX_LOOP=15 DHCP_SLEEP=15 IPFWDING_KERNEL=NO IPFWDING_FW=NO IPMASQ_DLOOSE=NO CONFIG_HOSTNAME=NO CONFIG_HOSTSFILE=NO CONFIG_DNS=NO ############################################################################### # Interfaces ############################################################################### #IF0_IFNAME=eth0 IF0_IPADDR=dhcp IF0_NETMASK=255.255.255.255 IF0_BROADCAST=255.255.255.255 IF0_IP_SPOOF=YES #IF1_IFNAME=eth1 IF1_IPADDR=192.168.0.20 IF1_NETMASK=255.255.255.0 IF1_BROADCAST=192.168.0.255 IF1_IP_SPOOF=YES #IF2_IFNAME=eth1:0 IF2_IPADDR=192.168.0.1 IF2_NETMASK=$IF1_NETMASK IF2_BROADCAST=$IF1_BROADCAST IF2_IP_SPOOF=NO ############################################################################### # Hosts ############################################################################### #HOST0_IPADDR=192.168.7.123 HOST0_GATEWAY_IF=default HOST0_GATEWAY_IP=192.168.1.200 HOST0_IPMASQ=NO HOST0_IPMASQ_IF=default ############################################################################### # Networks ############################################################################### #NET0_NETADDR=192.168.0.0 NET0_NETMASK=$IF1_NETMASK NET0_GATEWAY_IF=$IF1_IFNAME NET0_GATEWAY_IP=default NET0_IPMASQ=YES NET0_IPMASQ_IF=$IF0_IFNAME ############################################################################### # Gateways (Default Routes) ############################################################################### #GW0_IPADDR=$HOST0_IPADDR GW0_IFNAME=$IF0_IFNAME GW0_METRIC=1 ############################################################################### # Port Fowarding ############################################################################### #PF0_IFNAME=$IF0_IFNAME PF0_DESTIP=192.168.0.10 PF0_TPORTS=53:5353,80:80,25:25,110:110,21:21,20:20,22:22 PF0_UPORTS=53:5353 ############################################################################### # Hostname Requires: CONFIG_HOSTNAME=YES ############################################################################### HOSTNAME=tourettes ############################################################################### # Hosts file (Static domainname entires) Requires: CONFIG_HOSTSFILE=YES ############################################################################### # IP FQDN hostname alias1 alias2.. HOSTS0="$IF1_IPADDR $HOSTNAME.psychosis.com $HOSTNAME t" ############################################################################### # Domain Search Order and Name Servers Requires: CONFIG_DNS=YES ############################################################################### DOMAINS="psychosis.com linkscape.net" DNS0=192.168.0.8 DNS1=192.168.0.9 ############################################################################### # Brief instructions for this file ############################################################################### # # DIRECT_SETTINGS_ONLY=(YES/NO) Default: YES # Bypass automatic configuration using this file's settings, # and only execute the commands in /etc/network_direct.conf # # VERBOSE=(YES/NO) Default: Yes # Be verbose about settings. # # MAX_LOOP=(int) Default: 10 # Maximum number of incrementable entries to search for. # IE: If you create a DNS7=, and MAX_LOOP=7, it will not be reached. # (DNS0 - DNS7 == 8 entries) # Setting this value higher than required will decrease the speed # of the configuation system. # # IPFWDING_KERNEL=(YES/NO) Default: NO # Enable IP forwarding in the kernel. To use your LRP host as a router, # change this to YES # # IPFWDING_FW=(YES/NO) Default: NO # Set firewall forwarding policy to 'allow'. To use your LRP host as # a router, you *probably* want to change this to YES. # # CONFIG_HOSTNAME=(YES/NO) Default: NO # Create /etc/hostname file using HOSTNAME entry. # Any current hostname file will be **OVERWRITTEN** # # CONFIG_HOSTSFILE=(YES/NO) Default: NO # Create /etc/hosts file using HOSTSx entries. # Any current hosts file will be **OVERWRITTEN** # # CONFIG_DNS=(YES/NO) Default: NO # Create /etc/resolv.conf file using DOMAINS and DNSx entries. # Any current resolv.conf file will be **OVERWRITTEN** # If you use dhcpcd or dhclient, say NO here to let it handle # DNS configuration. # # # Interfaces section----------------- # # This section needs a block of IF*_ variables for each # interface (eth*, ppp*, or anything else) # The sample configuration includes three entries: # IF0_* illustrates an Ethernet interface that uses # DHCP configuration; this is one possible configuration # of an external interface # IF1_* illustrates an Ethernet interface that uses # static configuration, in this case an internal, NAT'd # interface. An external interface would be set up # similarly, except that it would normally use a "real", # routable IP address # IF2_* illustrates an "aliased" Ethernet interface, a second # interface that shares a physical interface with # another. It too is configured as an internal # interface. # To use any of the samples, uncomment the initial line # and edit its value to the ones appropriate for your setup: # IF*_IFNAME = the name that "ifconfig" would # associate with the interface # IF*_IPADDR = the IP address # IF*_NETMASK = the netmask in dotted-quad form # (e.g., 255.2552.55.0, not /24) # IF*_BROADCAST = the broadcast address # IF*_IP_SPOOF = # # # Networks section---------------------- # # Each interface entered in the interfaces section needs a network # explicitly associated with it, to set up the device's routing # table. Only one example is provided; replicate it to provide a # block of NET*_* variables for each interface, changing the various # NET0_* variable names to NET1_*, NET2_*, and so on. The network # number associated with an interface must be consistent with its # IP address; that is, the IP address must be on the assigned network. # To use a block of NET*_* variables, uncomment the first line, and # edit the entries as follows: # NET*_NETADDR = the network address in dotted-quad form # NET*_NETMASK = the netmask in dotted-quad form. As the # example illustrates, you can set this equal to the # IF*_NETMASK value of the associated interface. # NET*_GATEWAY_IF = the *name* of the interface on the LRP # host that the network is associated with. It is # most easily specified, as in the example, by the # IF*_IFNAME variable for the interface. # NET*_GATEWAY_IP = normally the IP address of the interface # selected above, specified with the "default" entry. # NET*_IPMASQ = whether to NAT traffic from this network. This # will typically be YES for internal interfaces with # private (non-routable) network addresses and NO for # other networks ... but your situation may vary from this. # NET*_IPMASQ_IF = the Interface name of the destination interface # that traffic from this network should be NAT'd to. This # permits a situation where, for example, two private- # address LANs on separate interfaces are able to route # directly to each other, but traffic from either is # Masqueraded when destined for the external interface. # # # Hosts section------------------------- # # Put here an entry for each host that you want the installation # process to speficy a static route to in the routing table. Variables # are entered here as in the preceding Networks section. # # # Gateways section ------------------------ # # Enter a set of values for each gateway that your LRP router will # use. Typical small sites will have only one default gateway. Uncomment # the first line of the block, then enter the values as: # GW0_IPADDR = the actual IP address of the gateway, in # standard dotted-quad form # GW0_IFNAME = the name of interface that connects to the gateway, # usually entered as the appropriate IF*_IFNAME variable. # GW0_METRIC = always 1 in one-gateway setups. # # # Port forwarding section--------------------- # # Put here a block of entries of each host that you wish to forward some # traffic to from incoming ports on the external interface. Uncomment # the initial line and enter the values as: # PF*_PFNAME = the name of the interface that will receive the # traffic to be forwarded -- typically your external # interface, and most easily entered as the appropriate # IF*_IFNAME variable. # PF*_DESTIP = the IP address of the host that will receive the # port-forwarded traffic. # PF*_TPORTS = a list of pairs of ports for which TCP traffic # will be forwarded - each pair is linked by a colon, # ordered source:destination, with the pairs separated # by commas. # PF*_UPORTS = a list of pairs of ports for which UDP traffic # will be forwarded, in the same format as the prior set. # # # DNS Section--------------------------------- # # Put here an entry for each line that you want placed in /etc/resolv.conf # There are two types of entry: # DOMAINS = a string that will appear as a "search" entry in # /etc/resolv.conf; typically this is used for the # domain associated with the LAN behind the router. # DNS* = the IP address of a nameserver. # Please note that adding these entries will NOT make them available # as nameservers to host on the LAN behind the LRP router. To do that, # you need to run a nameserver (such as BIND or DNSCACHE) on the LRP # router and configure that packaage separately. # # ############################################################################### # End ###############################################################################