Desktop FreeBSD Part 9: FreeBSD and Broadband

By Ed Ed | Posted at 22:10

Of all the tasks in FreeBSD, setting up a broadband connection is probably one of the easiest. All the various BSDs are built around networking, and most broadband connections operate pretty much like an extended LAN, using the same hardware, often called an "ethernet" connection: something that looks like fat phone lines, which plug into similarly fat-looking sockets which resemble telephone jacks.

If you are paying attention during initial installation, you'll see an opportunity to setup networking. If you miss it, you can always go back to the installer by invoking on the commandline (logged in as root): /usr/sbin/sysinstall. On the menu that opens, look for Configuration, which allows you to make changes after installation. On the next menu, select Interfaces, which brings you to the same window you get when you say "yes" to that option during the installation.

At this point, you will be presented with a list of interfaces which FreeBSD has detected. These interfaces are a combination of letter abbreviations followed by a number, always starting with zero. If there is only one of each interface, each will have a zero on the end. If your machine possess anything resembling a serial port, FreeBSD assumes it can be used for networking, calling it a plip interface. FreeBSD also assumes you could have a dialup modem on the machine somewhere, and will offer a ppp interface, as well as the older sl (slip) interface, but you aren't likely to be using that.

If FreeBSD can detect an ethernet device or wireless device, it will offer one of a long list of interfaces usually identified by a two- or three-letter code. For example, a standard wireless card on a laptop will be labeled as wi0, and a second one would be wi1, and so forth. The "wi" means wireless. Most of the time, the interface abbreviation will be based on the chipset used. An example would be the "rl" (lowercase RL) interface, which indicates RealTek 8129/8139 chips. The list of possible abbreviations is quite long. If you see anything beyond the standard interfaces listed previously, FreeBSD has decided it found something it knows how to use. If you know you have an ethernet device and FreeBSD doesn't see it, you'll have to research loading the driver module manually, and there's no room to cover that here. Rest assured, FreeBSD has a driver for most ethernet hardware.

When you have determined which item is your broadband connection interface, use the arrow keys to highlight the item and hit ENTER. Running through the scripted process, sysinstall will ask a series of questions. Unless you know, you can usually accept the default answer on each one. Most broadband services require you to use something called DHCP, a protocol whereby your computer periodically asks the ISP to supply an IP address it should use when connecting to the Internet. If your broadband provider says you need DHCP, make sure to answer "yes" to that question. The last thing you'll see is a gray page with blocks to be filled.

We discuss elsewhere the Host name you should give your machine (see #7 on that page). To summarize, unless your provider has told you what to use, it's best to choose something fake, something that is not recognized on the Internet as a valid machine name. I recommend you choose a simple four- to eight-letter nickname, followed by a dot, then local.bsd. My own machine at this time is crunch.local.bsd. Most likely the rest of the blocks will be filled in, especially if your machine is already plugged into a working broadband connection. If not, it's okay to leave the other blocks blank. By using DHCP, most details are taken care of automatically.

Once you are finished, hit the TAB key until you highlight the OK button and hit ENTER If you are still in the initial installation of FreeBSD, the last question should be asking if you want to bring up that interface. Unless you have a good reason not to, you'll probably want to say "yes" to that. You should also see some questions about whether this machine will serve as a gateway, FTP server, etc. These are outside the scope of this tutorial, so I'll advise you to say "no" to everything.

If your connection does not have a router, or a smart modem which serves as a router, you may need a firewall. The firewall you'll use for your broadband service is similar to the dialup firewall with exceptions as noted. Those include the line which identifies your outside interface has to change to match the interface you configured above. For mine, that line near the top of the firewall file looks like this:

oif="vr0"

There is also an extensive discussion in the tutorial about determining if you are using a connection which places you on a virtual LAN, and what the IP range is for that. This matters only when your machine is sharing a connection with Windows machines. By opening your firewall to permit traffic from those within the internal IP range, you aren't actually risking much. However, the noise they make on a LAN will fill up your firewall logs pretty fast.

Halfway down, just above the line which says:

# Allow all local traffic

we need to add a new section:

# Allow all connections within our network.
$fwcmd add allow ip from any to 192.168.1.0/24
$fwcmd add allow ip from 192.168.1.0/24 to any

Please note these numbers are based on information I got from my DSL provider (AT&T Yahoo). Simply ask what internal IP range is used on your connection.

Everything else in your /etc/firewall.conf should be the same as the example. To engage the firewall, as root go to the commandline and type:

/etc/netstart

and hit ENTER. You should see a response indicating the firewall has been loaded, with the rules listed in numerical order. At that point, you should be online and ready to go.

Should you experience trouble connecting, it won't be a disaster to turn off the firewall for a time by commenting out in your /etc/rc.conf file every line that begins with "firewall" by inserting a hashmark (#) at the beginning. Rerun the netstart command as above and try again. Then join any one of several BSD forums and ask for help. I recommend Screaming Electron, but there are others.

Ed Hurst is Associate Editor of Open for Business.

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

plip is for parallel port internet, not serial. man plip for more info.

Posted by Dan Mahoney - Dec 9, 2007 | 7:10

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Sysinstall only takes care of the interface. Unless you provide a valid rc.conf/ppp.conf you're not going to connect to anything.

Posted by Anonymous - Nov 13, 2007 | 11:04

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Thank you, Anonymous. We cover those items elsewhere in the series, this being Part 9.

Posted by Ed Hurst - Nov 14, 2007 | 19:35

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband
Posted by Masken - Nov 16, 2007 | 18:55

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Due to higher latencies would you suggest any stack tuning for broadband connections? Maybe increase the incoming buffer space?

Posted by Kevin Dierking - Nov 17, 2007 | 6:57

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Generally, no tweaking is needed; things take care of themselves. YMMV, of course.

Posted by Kevin Kinsey - Nov 23, 2007 | 21:42

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

With firewall tuning showed in Desktop FreeBSD Part 2 it is impossible for client to download from ftp server. To help this people should use passive mode.

Posted by Natasha Johnson - Feb 8, 2008 | 12:46

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

What about mobile brodaband?

Posted by Andrius - Apr 10, 2012 | 11:26

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Andrius, this article was written five years ago, and some months behind the date that version of FreeBSD was released. At this point you really need to use a search engine to find out if FreeBSD has drivers for any of the mobile broadband devices commonly used these days.

Posted by Ed Hurst - Apr 11, 2012 | 0:48

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Outstanding internet site you might have the following, a great deal great details!..

Posted by buy Instagram followers - Apr 17, 2017 | 9:22

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Why not remain this unique amazing give good results not to mention I just await further with the fantastic blog posts.

Posted by Asthma - Apr 17, 2017 | 10:39

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

There are several dissertation internet sites on-line because you get evidently reported as part of your web site.

Posted by matcha thee - Apr 18, 2017 | 11:49

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

I actually checked right up your website considering Concerning listened to a great deal of pertaining to a person's discussions. Grateful to talk about, a gossip very well; you will be okay around this. I require a strong to aid people for your permanent job We're perfecting. Possible never examine any blogs and forums hence I hope you may would suggest a person in the near future or only instantly to people.

Posted by Live Trading Room - Apr 18, 2017 | 12:26

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

It's at the same time a decent place which i extremely savored browsing. Isn't day to day that provide the prospect to observe an item. China PCB Assembly

Posted by vip seo - Apr 19, 2017 | 8:17

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

I really like all of the articles, I truly loved, I'd like more info relating to this, simply because it's very good., Many thanks with regard to discussing.

Posted by www.monmasque.com/16-accessoires - Apr 19, 2017 | 8:47

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

That appears to be clearly amazing. Most teeny specifics are using great deal of reputation encounter. So i am attached to the idea a good deal. Profits Infinity 2.0

Posted by vip seo - Apr 19, 2017 | 11:22

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Looking through a person's blogs and forums would make people prefer to publish progressively more. I did so your we appeared to be really happy by using. Them aren't executed to the place nonetheless it’s striking. I'll give you actually the hyperlinks so you're able to look at them to do allow me to explain imagination.

Posted by free movie download sites  - Apr 19, 2017 | 11:48

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Awesome content i have to tell you and additionally regards for those knowledge. Certification happens to be a sticky content. Still, 's still the contributing tips of our effort. Document recognize any content and additionally wait for a great deal more.

Posted by Profits Infinity - Apr 19, 2017 | 12:18

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

So i'm experienced an important create. It really is fabulous to establish most people will explain in words in the mood best of all opportunity at which will elementary area community are by and large in comfort noticed. Pareri

Posted by vip seo - Apr 20, 2017 | 8:59

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

I'm keen on ones write-up. It truly is beneficial to discover people verbalize on the cardiovascular system in addition to understanding within this significant theme is usually simply discovered. guidance check out web page.

Posted by voyance par telephon - Apr 20, 2017 | 11:25

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

You're 1 really dependable weblog author. I am talking about, typically, writers come up with problems and also the data they provide isn't because useful. A person however; all you state writing instruments away. Your own suggestion with regard to using for example had been the very best. This website is ideal!

Posted by what is full stack design - Apr 20, 2017 | 11:50

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Please continue this great work and I look forward to more of your awesome blog posts. tips

Posted by vip seo - Apr 22, 2017 | 13:12

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Please continue this great work and I look forward to more of your awesome blog posts. tips

Posted by vip seo - Apr 22, 2017 | 13:12

Re: Desktop FreeBSD Part 9: FreeBSD and Broadband

Thanks for sharing the post.. parents are worlds best person in each lives of individual..they need or must succeed to sustain needs of the family. Tax Accountants

Posted by vip seo - Apr 23, 2017 | 6:22

Please enter your comment entry below. Press 'Preview' to see how it will look.

Name:
Sign In to Your Account
User Name:
Password:
Location:
Homepage:
E-mail:
Subject:
:mrgreen: :neutral: :twisted: :arrow: :shock: :smile: :???: :cool: :evil: :grin: :idea: :oops: :razz: :roll: :wink: :cry: :eek: :lol: :mad: :sad: :!: :?:
Home About Connect: Twitter Facebook RSS
© 2001-2012 Universal Networks, All Rights Reserved. Some content rights may be held by Universal Networks' providers and used under license. Powered by ServerForest and SAFARI. Learn about our privacy policy here.