Download your favorite Linux distribution at LQ ISO.
Go Back > Forums > Linux Forums > Linux - Software
User Name
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.


  Search this Thread
Old 11-19-2005, 05:05 AM   #1
Registered: Jan 2004
Distribution: LFS
Posts: 91

Rep: Reputation: 15
Help to prevent a divorce!!! (Internet access /NAT etc)


Oh boy am I getting some stick - not altogether unjustified either!

Ok, the setup WAS as follows:-

Broadband connection to a wireless router / 100Mb Switch.

2 Laptops connecting over wireless directly to the internet (router performing NAT)

1 Linux server (LFS 6.0) running SQUID, SAMBA, Dan's Guardian, Postfix, ClamAV and HavP. Also providing DHCP and DNS services.

2 Desktop PCs connecting over wireless to SQUID. (The kids).

All this worked fine - then we moved house.

We now have cable, so we can no longer use the wireless router for broadband access. I have connected the Linux box to the cable modem and it seems to be working OK. Also, if I connect the laptop directly to the cable modem (as I have to post this), it works fine - so I assume the internet link itself is fine.

Now for the problem.....

I need to get the Linux box working as a busybox. I can connect to the internet via SQUID etc OK, BUT I am having problems with a lot of the sites we adults use - mainly those involving https (internet banking, e-bay etc). It is either extremely slow (to the point connections time out) or gets blocked. This slowness also seems to depend on the site accessed (although not neccessarily the protocol used).

I would like to get the linux box running NAT so the laptops can connect directly, but when I try following the how-to's I can find, not only doesn't it work, but access to SAMBA, DHCP, etc etc is blocked.

I have set up packet filtering and stuff on other systems (most noteably NetWare running BorderManager) but that was some time ago and I can't get my head around IPTABLES at all.

Let me know if any other details are required.....


I wasn't sure if this should be posted in the networking forum, apologies if I misjudged - let me know and I'll repost there (I didn't want to cross-post!!)

Thanks in advance for any help.


Last edited by Paulsuk; 11-19-2005 at 07:37 AM.
Old 11-19-2005, 08:31 AM   #2
Gentoo Developer
Registered: Feb 2004
Location: Fort Lauderdale FL.
Distribution: Gentoo
Posts: 3,291
Blog Entries: 5

Rep: Reputation: 56
I do it like this;
internet -> Broadband Modem -> gentoo web server + router + gateway -> switch -> wireless access point. Plus the switch is connected to a couple of desktops. The gentoo box also is a dhcp server.
Some links;
here is my iptables stuff;
I may have changed a few things, not sure. Need anything let me know. Most should work on LFS.
Old 11-19-2005, 03:57 PM   #3
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks for that

Only thing is, your final link seems to be broken

Old 11-19-2005, 05:37 PM   #4
Registered: Jul 2004
Location: Winnipeg
Distribution: Slackware 11
Posts: 74

Rep: Reputation: 15
This may seem like kind of a dumb question but why can't your wireless router connect to your cable provider so you can have the same setup as before? Most wireless routers I know connect fine to any cable connection.
Old 11-19-2005, 09:12 PM   #5
Senior Member
Registered: Oct 2005
Location: Denver
Distribution: Sabayon 3.5Loop2
Posts: 1,150

Rep: Reputation: 45
Unless they need you to register a mac address, in which case, you have to add one more step, cloning the mac address from the tower you did register, then it should work just fine. But as you say, I agree, it should work on cable just fine. It isn't like there are dsl routers and cable routers... there are ethernet routers. No matter which kind of modem you have(cable/dsl) you can use a router just the same.
Old 11-20-2005, 02:24 AM   #6
Registered: Jan 2004
Distribution: LFS
Posts: 91

Original Poster
Rep: Reputation: 15
Thanks for the responses - I've now got it working (IPTables was the issue!!)

To answer the question about using the router, my wireless router was an ADSL unit with an RJ11 connection to the broadband filter. The cable modem connects vi a coax connection to the feed from NTL, so I don't see how I could achive what you are suggesting...

Anyway, all's well that ends well.



Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to have prevent X server to... melopll *BSD 4 08-29-2005 05:45 PM
how to prevent Bogons ? basbosco Linux - Security 5 03-01-2004 10:35 PM
iptables prevent some allow some john8675309 Linux - Software 6 02-02-2004 10:38 AM
How to prevent users from --> Drogo Linux - Software 7 01-31-2004 11:03 PM
prevent an IP to get out? jimval7 Linux - Security 16 05-09-2003 09:58 AM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 04:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration