ClearOS system as gateway

@@GJC@@

Active Member
Joined
Sep 12, 2010
Messages
44
Reaction score
0
So I had a old pc lying around and our router is terrible at QoS so I decided to set the old pc up as a gateway to do the QoS. So I looked around and decided to use ClearOS as it seems a good option.

So I got an extra PCI Lan card and stuck it in the PC. I set it up as follow : Netgear ADSL router -> Gateway PC with ClearOS on -> D-Link Gigabit switch (with all PC's on). Now I installed ClearOS and everything worked fine.

I set up eth0 (connected to ADSL router - ie. external) as a ppoe connection (it was then renamed to ppp0), this worked fine and it shows my external ip as 41.xxx.xxx.xxx. Then I set up eth1 (connected to switch with PC's connected to it) with IP 192.168.0.255 and configured it as the DHCP server. This worked well and the PC's connected to the switch all detected their IP's and Default Gateway successfully.

Now I'm only having 2 problems :

1.The 2 windows PC's (Win 7) detected each other but neither could detect the Gateway (I assume they should be able to detect it as I've read that you can configure ClearOS remotely)

2.Although the Gateway has a pppoe connection and a external IP and it is connected to the PC's and gives them their IP's, I still dont have internet access through the PC's behind the gateway.

I'm new to linux so please excuse me if I missed something simple :)
I'll appreciate any assistance
 
Enable the proxy.
Make sure its transparent.
Make sure all client machines are set to dhcp (make sure DHCP is running as well).
 
Ok so I have enabled the proxy and set it to transparent. The DHCP server is up and running, the PC's are set to obtain IP settings and they're obtaining IP's in the right IP range so I assume it's working right

Yet I still dont have internet access. Any thoughts?
 
Its probally DNS.

From your pc can you ping the IP 8.8.8.8 ?

If you can ping that, and not google.com it means your DNS is not right.

Whats your ISP? Be sure to put its DNS servers into the DHCP servers DNS configuration. Normally I would setup the DNS there as first looking at the local server, then the ISPs DNS then 8.8.8.8 (which is Googles DNS servers)
 
I'm using Openweb, VB backbone I think. I pinged 8.8.8.8 but none of the packets were returned. So I'm not sure if I did something else wrong.

On a side not in ClearOS under the Local DNS settings it only give two field which you can enter to add a new entry; IP Address and Host Name, is this right?
 
Yeah thats right. In all honesty it should be working. If you ssh with putty or something into the server are you able to ping out? Only other thing I can think of.. in your dhcp settings (you need to click the "edit" button for the range), is the gateway listed the same IP as that of the server?
 
Oh, another thing, can you ping your server from the client machine?
 
Yeah, as w1z said, SSH to the server and see if you can ping to the outside, and that your gateway IP (as in the DHCP server settings) is correct.

Ping 8.8.8.8 and www.mweb.co.za on the gateway - both should return pings.

Remember, the first time is always the hardest - but thereafter it is easier.
 
Right so I went into the ClearOS command line and pinged 8.8.8.8. This worked perfectly without any packet loss, but when I pinged mweb.co.za, google.co.za/com it timed out.

Also in the DHCP range settings Gateway and DNS Server #1 point to the IP of the ClearOS server, is this correct or should they point to the IP of the ADSL router?

PS: Thanks for the replies so far everyone
 
Right so I went into the ClearOS command line and pinged 8.8.8.8. This worked perfectly without any packet loss, but when I pinged mweb.co.za, google.co.za/com it timed out.

Also in the DHCP range settings Gateway and DNS Server #1 point to the IP of the ClearOS server, is this correct or should they point to the IP of the ADSL router?

PS: Thanks for the replies so far everyone

The fact that you can ping an IP and not a domain says your DNS is borked. What I do in these cases it nano (edit) /etc/resolv.conf

mine looks like this, but I use SAIX bandwidth:

nameserver 196.43.46.190
nameserver 196.43.45.190
nameserver 196.43.53.190
nameserver 8.8.8.8

The name servers are 3 of telkoms and one of googles. You can put in as many nameservers as you want. They are ISP specific.

The gateway setting in the IP should be your clear server. You mentioned your clearos server was dialing so for it to have dialed out your modem needs to be in bridge mode. So your modem is just a modem now.. not a router, so no need to route to its ip.

On the client machine can you ping the server IP and what are the results of ipconfig /all ?
 
Last edited:
Well I opened resolv.conf up in vi and it only had one entry; nameserver 10.0.0.2. So I added in a new line nameserver 8.8.8.8 and then pinged google.co.za and google.com but the request timed out.

At the moment my ADSL router is set up in its default state (Half-Bridged I believe) because I am using the Netgear DG834v5 and it doesn't have the option to be configured in Full-Bridged mode. I googled it and found a hidden page in the WUI of the router. But after having set it to Full-Bridged mode at this page it freaked out and I was not able to dial a PPPoE connection through it as windows returned a error saying something about a modem error.

When I ping the server it times out and the ipconfig /all results are:
Code:
Ethernet adapter Local Area Connection:

   Connection-specific DNS Suffix  . : clearos.lan.com
   Description . . . . . . . . . . . : Realtek PCIe GBE Family Controller
   Physical Address. . . . . . . . . : 00-26-18-71-69-04
   DHCP Enabled. . . . . . . . . . . : Yes
   Autoconfiguration Enabled . . . . : Yes
   Link-local IPv6 Address . . . . . : fe80::e994:5af9:a34:7216%11(Preferred)
   IPv4 Address. . . . . . . . . . . : 192.168.0.190(Preferred)
   Subnet Mask . . . . . . . . . . . : 255.255.255.0
   Lease Obtained. . . . . . . . . . : Sunday, April 24, 2011 3:47:58 PM
   Lease Expires . . . . . . . . . . : Monday, April 25, 2011 3:47:58 PM
   Default Gateway . . . . . . . . . : 192.168.0.255
   DHCP Server . . . . . . . . . . . : 192.168.0.255
   DHCPv6 IAID . . . . . . . . . . . : 234890776
   DHCPv6 Client DUID. . . . . . . . : 00-01-00-01-13-C5-C5-55-00-26-18-77-69-04

   DNS Servers . . . . . . . . . . . : 192.168.0.255
   NetBIOS over Tcpip. . . . . . . . : Enabled

Would it help if I emailed Openweb and asked them what their nameserver IP's are and then add them to the resolv.conf?
 
Last edited:
Well I opened resolv.conf up in vi and it only had one entry; nameserver 10.0.0.2. So I added in a new line nameserver 8.8.8.8 and then pinged google.co.za and google.com but the request timed out.

Did you remove 10.0.0.2 ?
 
I thought .255 was broadcast? Perhaps change your servers IP to .254?
 
Allright so I changed the server IP from .255 to .254 and it's working now!! Thank you very much

On a side note though when I type the server IP into the webbrowser it says connection refused is this due to the firewall?

But anyway thanks for the help W1z4rd, The_Librarian and Ponder!

EDIT: Got the remote WUI working just had to use port 81
 
Last edited:
Top
Sign up to the MyBroadband newsletter
X