Solved

some network help

Posted on 1998-06-30
4
210 Views
Last Modified: 2013-12-16
hello,

I have a i486 running FreeBSD and what i'm trying to do is make it a gateway (hope this is what it's called) to the internet for a local network.

The local network consists of 4 windows machines, but that shouldn't really matter.

Can someone tell me what it is i need to do (globally at least :) to accomplish this? I'm thinking about DNS, routing etc.

thank you,

 FlorizzzZz
0
Comment
Question by:TheMadManiac
  • 2
4 Comments
 
LVL 2

Expert Comment

by:JYoungman
ID: 1812218
Do you have Internet IP addresses to assign to those windows machines, or do you have just the one address from your ISP?
0
 
LVL 1

Author Comment

by:TheMadManiac
ID: 1812219
There is only one IP from the ISP.
All machine in the network have ip's in 192.168.1.x

I just heard that all I would have to do is set GATEWAY="YES" in rc.conf, and type ppp -alias, term and that would solve everything. However, this seems a bit simple and i couldn't really get it to work (read: not)
0
 

Accepted Solution

by:
ShootThemLater earned 50 total points
ID: 1812220
You're on the right track, probably just need a bit of fiddling (I assume here that you are able to get ppp running/dialing correctly without the aliasing...)

The Pedantic PPP Primer at http://www.freebsd.org/tutorials/ppp/ppp21.html#24 offers the following advice:

 To start the PPP program as a gateway between
 LAN resources and the Internet, one of the
 following command lines would be used instead:

 # ppp -alias interactive (Interactive mode)
 or
 # ppp -auto -alias demand (Dial-on-Demand mode)

 You can alternatively use the command
 ``alias enable yes''
 in your ppp configuration file (refer to the man
 page for details).

I imagine that the above primer, together with the handbook
(http://www.freebsd.org/handbook/handbook200.html#421) should provide all the information you need (although in my experience there will always be *something* you overlook).

The alternative is to go the route more favoured by our Linux-using friends and use pppd.  There's also plenty available to support this approach.

Good luck..

Dave
0
 
LVL 1

Author Comment

by:TheMadManiac
ID: 1812221
yes! yesterday i finally got the ppp working (manualy, but working :)
seems that all what was wrong was the hosts file, which probably got messed up after i installed ppp via /stand/sysinstall (on advice of an IRC person). After i fixed this, everything worked fine.

The man pages and the handbook were indeed a lot of help getting to know a lot of the things that i needed to do.. and things that were told i had to do i didn't have to do (weird :)

thanks!
0

Featured Post

How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

Join & Write a Comment

Attention: This article will no longer be maintained. If you have any questions, please feel free to mail me. jgh@FreeBSD.org Please see http://www.freebsd.org/doc/en_US.ISO8859-1/articles/freebsd-update-server/ for the updated article. It is avail…
Why Shell Scripting? Shell scripting is a powerful method of accessing UNIX systems and it is very flexible. Shell scripts are required when we want to execute a sequence of commands in Unix flavored operating systems. “Shell” is the command line i…
Learn how to navigate the file tree with the shell. Use pwd to print the current working directory: Use ls to list a directory's contents: Use cd to change to a new directory: Use wildcards instead of typing out long directory names: Use ../ to move…
This video shows how to set up a shell script to accept a positional parameter when called, pass that to a SQL script, accept the output from the statement back and then manipulate it in the Shell.

757 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

19 Experts available now in Live!

Get 1:1 Help Now