Defcon1-Header
Tool-BarfreeBSD ArticlesSearch Our SiteHOMEfreeBSD LinksContribute to FreeBSD HelpFreeBSD FilesFreeBSD Script Corner

FreeBSD machine as the gateway

Setup on the Windows Machine:
1.
Make sure you have a TCP/IP Protocol setup for your network card
2. Need to set the network address as 10.0.0.2 for the Windows machine.  The gateway needs to be 10.0.0.1, and netmask is 255.255.255.0  This is all set in the TCP/IP in the network section of the control panel.
3. Under DNS Configuration, click on Enable DNS, then place the machine name of your 95 machine in the host section, for example: machine1  then in the domain section, put your ISP name example:  thisisp.com
  Under DNS Server search order, put the main Ip of your ISP that your FreeBSD machine will be connecting to.

FreeBsd Machine Setup:
1. Most of the files that we will be modifying are in the /etc directory.
2. For all example's we are going to use the network card on our examples as
device ``ed0".  In your rc.conf file, in the /etc directory we need to have something that looks similar to this.

### Basic network options: ###
hostname="sr-71.softwareszone.com"      # Set this!
nisdomainname="NO"                             # Set to NIS domain if using NIS (or NO).
firewall_enable="YES"                            # Set to YES to enable firewall functionality
firewall_type="OPEN"                            # Firewall type (see /etc/rc.firewall)
firewall_quiet="YES"                              # Set to YES to suppress rule display
tcp_extensions="YES"                            # Allow RFC1323 & RFC1644 extensions (or NO).
network_interfaces="ed0 tun0 lo0"          # List of network interfaces (lo0 is loopback).
#ifconfig_lo0="inet 127.0.0.1"                 # default loopback device configuration.
#ifconfig_lo0_alias0="inet 127.0.0.254 netmask 0xffffffff"     # Sample alias entry.
ifconfig_ed0="inet 10.0.0.1   netmask 255.0.0.0"
ifconfig_tun0="inet 109.3.90.20 109.3.90.8 netmask 255.255.255.255"
ifconfig_lo0="inet 127.0.0.1 "                  #default loopback
 


### Network routing options: ###
defaultrouter="109.3.90.2"              # Set to default gateway (or NO).
#static_routes="foo " route_foo="10.0.0.0 -netmask 0xf0000000 -interface 10.0.0.1"              # Set to static route list (or leave
 empty).
gateway_enable="YES"                   # Set to YES if this host will be a gateway.
router_enable="YES"                      # Set to YES to enable a routing daemon.
router="routed"                               # Name of routing daemon to use if enabled.
router_flags="-q"                            # Flags for routing daemon.
mrouted_enable="NO"                   # Do multicast routing (see /etc/mrouted.conf).
ipxgateway_enable="NO"              # Set to YES to enable IPX routing.ipxrouted_enable="NO"                 # Set to YES to run the IPX routing daemon.
ipxrouted_flags=""                          # Flags for IPX routing daemon.
arpproxy_all=""                              # obsolete kernel option ARP_PROXY_ALL equiv.

Dialing the FreeBSD Machine type: "ppp -alias -auto PROFILENAME"


GhostRdr

© 1997 - 20013 Defcon1, www.defcon1.org , Copyrights for all materials on this web site are held by the individual authors, artists, photographers or creators. Materials may not be reproduced or otherwise distributed without permission of www.defcon1.org and the content's original author.

Defcon1-Header2
Tool-Bar-2Defcon1  Webmail