Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
On Fri, Oct 2, 2009 at 4:03 PM, green greenfreedo...@gmail.com wrote: Vinicius Massuchetto wrote at 2009-10-02 11:54 -0500: [...] Here is one way: 1. Set the IP address statically on the laptop for eth0 (192.168.0.1). I did this. My eth1 is on 192.168.1.1. 2. Set up a DHCP server (I use dnsmasq) on the laptop, listening on eth0. And this: $ cat /etc/dnsmasq.conf domain-needed bogus-priv interface=eth1 dhcp-range=192.168.1.3,192.169.1.100,12h 3. Configure the DHCP server to give the router a specific IP address, using the MAC address of the router (IP 192.168.0.2). The router configuration allows me to fix its IP. Is it still necessary? The router is on 192.168.1.2 4. Disable the DHCP server on the router. I did this too. On LAN and WLAN interface. 5. Install the ipmasq package, and configure as necessary. ipmasq is not available on sid. What package replaces it? -- Vinicius Massuchetto http://vinicius.soylocoporti.org.br -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
Vinicius Massuchetto wrote at 2009-10-10 08:44 -0500: On Fri, Oct 2, 2009 at 4:03 PM, green greenfreedo...@gmail.com wrote: Here is one way: 1. Set the IP address statically on the laptop for eth0 (192.168.0.1). I did this. My eth1 is on 192.168.1.1. eth0 is on the WAN/internet side? 2. Set up a DHCP server (I use dnsmasq) on the laptop, listening on eth0. And this: $ cat /etc/dnsmasq.conf domain-needed bogus-priv interface=eth1 dhcp-range=192.168.1.3,192.169.1.100,12h That looks okay; hopefully nothing is missing. 3. Configure the DHCP server to give the router a specific IP address, using the MAC address of the router (IP 192.168.0.2). The router configuration allows me to fix its IP. Is it still necessary? The router is on 192.168.1.2 That should work. 4. Disable the DHCP server on the router. I did this too. On LAN and WLAN interface. Good. 5. Install the ipmasq package, and configure as necessary. ipmasq is not available on sid. What package replaces it? Well, I'm not sure. I've always just used the ipmasq package. You could try echo 1 /proc/sys/net/ipv4/ip_forward To apply this permanently put the following line in /etc/sysctl.conf: net.ipv4.ip_forward=1 If that doesn't work, maybe someone else knows how. I'm sure you can do it with nothing more than Linux + iptables, but I don't know how. signature.asc Description: Digital signature
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
On 2009-10-02, Vinicius Massuchetto viniciusan...@gmail.com wrote: Hi all! I tried hard a few days ago to share a ppp internet connection through the wlan interface on my laptop. I just found out that this is not possible because my hardware can't do AP. So, I was wondering if I get a standard wireless router and feed it with an internet connection from the laptop, configuring my computer as a dhcp server. Would that work? Did anyone already tried this? Thanks! -- VinÃcius Massuchetto http://vinicius.soylocoporti.org.br Why not just run squid on the laptop and have browsers on the wlan use it as a proxy? -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
Vinicius Massuchetto wrote at 2009-10-03 07:34 -0500: I can't seem to find the Netgear model you recommended on my city. I recommend a Buffalo WHR-HP-G54 running the DD-WRT firmware. If the price is acceptable to you, it would probably be a good choice. It will definitely work for sharing an internet connection, and probably for whatever MS stuff you mentioned also. signature.asc Description: Digital signature
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
On Fri, Oct 2, 2009 at 3:00 PM, j...@jretrading.com wrote: Vinicius Massuchetto wrote: [...] So, I was wondering if I get a standard wireless router and feed it with an internet connection from the laptop, configuring my computer as a dhcp server. Would that work? Did anyone already tried this? Probably, but it may depend on the router. The Netgear DG834 will do it, I'm currently using two with an MS Small Business Server, which is handling DHCP for the network. A third router on the network is actually the Internet gateway, as the customer is now on ADSL2+ and the version of DG834 that they have doesn't do that. I can't seem to find the Netgear model you recommended on my city. This one seems to be a good option for me: You-Link 54Mbps 802.11g Wireless G Router LAN - Static Dynamic Routing With TCP/IP VPN - pass-through(IPS ec,L2TP),NAT,PPTP - PPPoe,DHCP(client server) - Function: Automatically detects your ISP type,Exposed Host(DMZ),MACaddress authentication,URL content filtering,logs and e-mail alerts of Internet activity - Modulation Type:PFDM with BPSK,QPSK,16QAM,64QAM,DBPSK,DQPSK,CCK - Firewall:Stateful packet Inspection(SPI) and Dos attack protection - Encryption:64,128-bit WEP Encryption,WEP-PSK I suppose its features are enough for this sharing operation. Is there any other important specification? Wireless routers do generally have DHCP servers, though you may want to have a different machine do it for some reason, such as automatic DNS integration. With MS SBS, it is strongly advised that the SBS handles DHCP, mostly for this reason. That's the case of my ppp connection. Thanks for helping. Vinicius -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
Vinicius Massuchetto wrote: Hi all! I tried hard a few days ago to share a ppp internet connection through the wlan interface on my laptop. I just found out that this is not possible because my hardware can't do AP. So, I was wondering if I get a standard wireless router and feed it with an internet connection from the laptop, configuring my computer as a dhcp server. Would that work? Did anyone already tried this? Probably, but it may depend on the router. The Netgear DG834 will do it, I'm currently using two with an MS Small Business Server, which is handling DHCP for the network. A third router on the network is actually the Internet gateway, as the customer is now on ADSL2+ and the version of DG834 that they have doesn't do that. Wireless routers do generally have DHCP servers, though you may want to have a different machine do it for some reason, such as automatic DNS integration. With MS SBS, it is strongly advised that the SBS handles DHCP, mostly for this reason. -- Joe -- To UNSUBSCRIBE, email to debian-user-requ...@lists.debian.org with a subject of unsubscribe. Trouble? Contact listmas...@lists.debian.org
Re: Redirect internet connection to wireless router (was: Sharing ppp [...])
Vinicius Massuchetto wrote at 2009-10-02 11:54 -0500: So, I was wondering if I get a standard wireless router and feed it with an internet connection from the laptop, configuring my computer as a dhcp server. Would that work? Did anyone already tried this? This is possible. Here is one way: 1. Set the IP address statically on the laptop for eth0 (192.168.0.1). 2. Set up a DHCP server (I use dnsmasq) on the laptop, listening on eth0. 3. Configure the DHCP server to give the router a specific IP address, using the MAC address of the router (IP 192.168.0.2). 4. Disable the DHCP server on the router. 5. Install the ipmasq package, and configure as necessary. You might prefer this way: 1. Connect the router laptop using wired or wireless, and use dhclient or your choice to get an IP from it using DHCP. 2. Configure the router to always give your laptop that address or whatever address of your choice, using the MAC address of the laptop's network interface that you are using. Alternatively, set the laptop's IP statically outside of the router's DHCP server IP range. 3. Configure the router with that IP address as 'gateway'. 4. Install the ipmasq package, and configure as necessary. signature.asc Description: Digital signature