Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
shorewall and DHCP requests
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Sat May 21, 2005 3:55 pm    Post subject: shorewall and DHCP requests Reply with quote

ive got my wireless NW configured like this


www--CAT5-- eth0-router
___________ router--eth1-----192.168.0.x by DHCP)

one of the clients has the wireless AP

-CAT5----eth0--(192.168.0.8)client
___________ client(192.168.1.1)---wlan0---wireless client(192.168.1.x)-WinXP

and I use shorewall to pass all the stuff from wlan0->eth0 where it then goes to the router -->www


currently the wireless IPs are static

I'd like to browse shares across the subnets
I think id need a WINS server if I left the IPs as they are

If they were all on the same subnet (192.168.0.x) it would be easier ( wouldnt it?)

How do i pass the DHCP requests in shorewall from wlan0 (defined as loc) to net0 (defined as net in shorewall/interfaces)
_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
stilgar
n00b
n00b


Joined: 22 Jan 2005
Posts: 5

PostPosted: Mon May 23, 2005 3:35 pm    Post subject: Reply with quote

Well, as far as i know you should create a rule in shorewall which tells it to allow the DHCP requests to pass from net interface to the wifi interface. DHCP requests are made through ports 67 and 68 UDP (if not mistaken). Only if your router is not RFC-1542 compliant you should install a DHCP Relay Agent in the other subnet (but if your router is a linux-box it´s no problem at all! :P).

About the browsing stuff, installing a WINS Server would help you if you had machines which are Windows 98 or below, since from Windows 98 and above M$ started to rely on DNS name resolution instead of NETBIOS. But it helps to have a WINS Server if you configure your TCP/IP in Windows to use NETBIOS over TCP/IP and if the resolution method is primarily NETBIOS and not DNS and if you configure your network card with a WINS server address.

But, as you said, configuring everything in the same subnet is easier! :) And to have the browsing question solved as a charm, configuring all the computers to the same workgroup helps a lot, since windows broadcast all computers in the same workgroup if it is not configured to use a WINS Server.

Note: just to clarify your mind abou WINS: all windows clients are configured primarily to use broadcasts to resolve name if no WINS Server is configured and if a WINS Server is configured they first try to query the server, if not succesfull they will broadcast.

Hope that helps! 8)
_________________
The quitenssential way of life is to live your life as it would be the ultmost experience you could have and life it as fast as it would be the very last moment you had.

-- So sayeth the weisest grasshoper in the world.
Back to top
View user's profile Send private message
thecooptoo
Veteran
Veteran


Joined: 27 Apr 2003
Posts: 1353
Location: UK

PostPosted: Sat Jun 04, 2005 8:35 pm    Post subject: Reply with quote

ive got
dhcp server (192.168.0.10) ----> client

client has 2 NW cards , eth0 ( hardwired, 192.168.0.8 from the DHCP server) and wlan0 ( wireless)

etc/conf.d/net
Code:

ifconfig_wlan0=(
        "192.168.1.1 broadcast 192.168.1.255 netmask 255.255.255.0"
)

and it works

when I change it to
Code:
ifconfig_wlan0="dhcp" 

Code:
/etc/init.d/net.wlan0 restart

hangs and doent get an IP address
no difference if i set a default gateway to 192.168.0.8 (the eth0 card) or 192.168.0.10( the router/DHCP server)

how do I tell the wireless card to get an IP address 192.168.0.x from the server , via eth0
_________________
join the optout - http://nhsconfidentiality.org
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum