home *** CD-ROM | disk | FTP | other *** search
- # Configuration for a gateway that connects a LAN to the Internet via ISDN
- # and additionally has an interface to a second LAN that is not officially
- # connected to the Internet
-
- # The gateway needs to know to which LAN it is connected. If you are new
- # to the Internet, your Internet provider will give you a range of Internet
- # addresses that you can freely assign to the devices in your LAN. If you
- # already have official Internet addresses for your LAN, you can use these
- # if your Internet provider agrees. Note that you usually must not use the
- # first and the last address of an Internet network for any of your devices.
- #
- # The gateway also has an interface to a second LAN that is not officially
- # connected to the Internet. This is a common case within companies that
- # don't need all of their devices connected directly to the Internet. So
- # while there is no direct connection possible between the unofficial
- # LAN and the Internet, the official LAN can communicate with both the
- # unofficial LAN and the Internet. Note that this is only possible if
- # the unofficial LAN uses Internet addresses that are reserved for this
- # purpose. Please refer to RFC 1597 for more informations.
- #
- # All Internet and ISDN numbers in this sample file are purely fictional,
- # but logically correct.
-
- #---------------------------------------------------
- # Routes
- #---------------------------------------------------
-
- route # default route to the Internet provider
- name internet
- net default
- interface isdn1
- link inet-provider
- metric 2
- endroute
-
- #---------------------------------------------------
- # Source routes
- #---------------------------------------------------
-
- source # deny data traffic from the unofficial
- net 10.0.0.0 # LAN to the Internet
- netmask 255.0.0.0
- attach internet
- route deny
- endsource
-
- #---------------------------------------------------
- # Links
- #---------------------------------------------------
-
- link
- name inet-provider
- address 030.12345678s
- options -d 1 -t 0 -h 0
- endlink
-
- #---------------------------------------------------
- # Globals
- #---------------------------------------------------
-
- global
- syslog
- host 193.200.100.10
- priority info
- logsource
- system
- routing
- endlogsource
- endsyslog
-
- prefix @echo off
- suffix cls\n\
- echo InterNet Access Router
- endglobal
-
- #---------------------------------------------------
- # Interfaces
- #---------------------------------------------------
-
- interface
- name LAN-official
- type ethernet
- address 193.200.100.1
- netmask 255.255.255.0
- metric 1
-
- attributes
- send_rip
- listen_rip
- send_default_route
- endattributes
-
- driver
- command ne2000 0x%x 0x3 0x300
- enddriver
- endinterface
-
- interface
- name LAN-unofficial
- type ethernet
- address 10.73.0.5
- netmask 255.255.0.0
- metric 1
-
- attributes
- send_rip
- listen_rip
- endattributes
-
- driver
- command ne2000 0x%x 0x5 0x320
- enddriver
- endinterface
-
- interface
- name isdn1
- type isdn
- address 193.200.100.1
- metric 2
-
- driver
- controller 0
- index 3
- syslog on
- options -w
- enddriver
- endinterface
-