LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 01-05-2008, 07:30 PM   #1
dplung
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Rep: Reputation: 0
Question (?) internet access for dhcp-clien


Hi,
help pls.
I use linux IPCop (ip=192.168.1.1) as a dhcp-server (ip from=192.168.1.10 to=192.168.1.30) and linux suse 10.2 (ip=192.168.1.60). The suse have access to internet. My question is: how to set the linux dhcp-server/clien and suse so, that the linux dhcp-cliens can also access to internet. Is that possible?
Thanks.
 
Old 01-06-2008, 06:31 AM   #2
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
Looking at your other posts I am guessing that you are trying run IPcop under VMWare together with SUSE on a single box. This is not going to work. Ditch the IPCop and setup SUSE as a DHCP server and firewall. There are plenty of tutorials on how to do this.
 
Old 01-06-2008, 04:58 PM   #3
dplung
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by mickza View Post
Looking at your other posts I am guessing that you are trying run IPcop under VMWare together with SUSE on a single box. This is not going to work. Ditch the IPCop and setup SUSE as a DHCP server and firewall. There are plenty of tutorials on how to do this.
Thanks for the answer...
I have:
One pc with linux suse (192.168.1.60) have access to internet via gprs,
one pc with ipcop as dhcp/router-server (192.168.1.1),
one pc with centos + vmware (you right) (192.168.1.40),
three other linux pcs with distros and one pc with windows xp (dynamic ip 192.168.1.10~30). All pcs and one AP connect to one switch and the linux use wlan via AP (access point) to connect to the same switch/lan.

The running ipcop's pc is an old pc, no usb + no pci.
I set: all pcs with dynamic ip have gateway=192.168.1.1, the linux suse have gateway=none and the ipcop have gateway=192.168.1.60(=linux suse's ip).

Ping from one pc to others is successfull, but the access to internet is not.

help...

Last edited by dplung; 01-06-2008 at 05:01 PM.
 
Old 01-07-2008, 02:29 AM   #4
mickza
Member
 
Registered: Mar 2005
Location: South Africa
Distribution: Centos, Fedora, Ubuntu desktop, IPCop
Posts: 168

Rep: Reputation: 33
OK - if this diagram:

internet<-->gprs<-->|suse|<--->|ipcop|<---->|switch|------ wired network & WAP

reflects your current setup you still have to either ditch IPCop or upgrade its box to something decent (min celeron 600/128Mb - I prefer a PIII/500 min with 256Mb for real work). I suspect your main problem is GPRS/IPCop compatibility which is why I recommend option 1 (GPRS is already working on the SUSE box).

1) Ditch IPCop - I haven't used SUSE but I think this will get you going:

http://www.swerdna.net.au/linhowtonic.html resulting in:

internet<-->gprs<-->|suse|<--->|switch|------ wired network & WAP

2) IPCop latest version (1.4.18) on a decent box. I haven't connected with GPRS myself but I believe it can be done. I suggest you get a old HD (min 3Gb) and, using an existing up to spec box, check you can connect via your usb GPRS modem before putting too much effort into this solution. This will result in:

internet<-->gprs<-->|ipcop|<--->|switch|------ wired network & WAP incl SUSE

this is first prize as it is the way IPCop is designed to work.

3) Check out the other firewall distros - Clarkconnect, Smoothwall etc. This option will still need a better box than you are currently using for IPCop, the days of 486/PIs running decent firewalls are history.
 
Old 01-07-2008, 04:34 AM   #5
dplung
LQ Newbie
 
Registered: Nov 2007
Posts: 15

Original Poster
Rep: Reputation: 0
Talking

Quote:
Originally Posted by mickza View Post
OK - if this diagram:

internet<-->gprs<-->|suse|<--->|ipcop|<---->|switch|------ wired network & WAP

reflects your current setup you still have to either ditch IPCop or upgrade its box to something decent (min celeron 600/128Mb - I prefer a PIII/500 min with 256Mb for real work). I suspect your main problem is GPRS/IPCop compatibility which is why I recommend option 1 (GPRS is already working on the SUSE box).

1) Ditch IPCop - I haven't used SUSE but I think this will get you going:

http://www.swerdna.net.au/linhowtonic.html resulting in:

internet<-->gprs<-->|suse|<--->|switch|------ wired network & WAP

2) IPCop latest version (1.4.18) on a decent box. I haven't connected with GPRS myself but I believe it can be done. I suggest you get a old HD (min 3Gb) and, using an existing up to spec box, check you can connect via your usb GPRS modem before putting too much effort into this solution. This will result in:

internet<-->gprs<-->|ipcop|<--->|switch|------ wired network & WAP incl SUSE

this is first prize as it is the way IPCop is designed to work.

3) Check out the other firewall distros - Clarkconnect, Smoothwall etc. This option will still need a better box than you are currently using for IPCop, the days of 486/PIs running decent firewalls are history.
yes!.... now have all the pcs access to internet.

topology now:
|internet|<-->|gprs|<-->|suse|<-->|usb wlan|<-(((-)))->
<-(((-)))->|wap|<-->|switch|<-->|ipcop|
|switch|<-->|other pcs|

setting by suse:
ifconfig wlan0 192.168.0.1 netmask 255.255.255.0 up
iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE

setting by ipcop:
green ip=192.168.1.1
red: ip=192.168.0.60 gateway=192.168.0.1

setting by other pcs:
ip=from dhcp
gateway=192.168.1.1
nameserver in /etc/resolv.conf = /etc/resolv.conf from suse (i don't know why...)

thanks...mickza

Last edited by dplung; 01-07-2008 at 06:51 AM.
 
  


Reply



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
Howto access internet usig dhcp with MAC register badall Linux - Networking 2 05-24-2007 01:53 AM
Debian Woody: Can't access internet through router, but can access network computers marales314 Linux - Networking 3 06-09-2006 12:33 PM
WIFI WLAN / Cannot access internet but can access the router configuration page?SUSE thomas939 Linux - Wireless Networking 12 12-13-2005 10:28 AM
No network/internet access with dhcp and cable modem skippy1283 Linux - Networking 3 05-26-2004 08:11 AM
Problems with DHCP and Comcast cable modem Internet access tomdkat Linux - Networking 2 07-23-2003 01:17 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 10:46 PM.

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