Re: Debian laptop and internet connection sharing

2004-02-23 Thread Mark Roach
On Sun, 2004-02-22 at 03:18 -0500, nick wrote:
 Would it be possible for him to plug a crossover cable into my RJ45 jack 
 and share my internet connection while I am connected to a WAP via my 
 WiFi card?

The easiest way, if all he needs is web access, is probably to install
squid.

edit /etc/squid.conf adding 
acl localnet src 192.168.0.0/255.255.255.0
(or whatever the subnet is that you'll be using)
right under the acl all src 0.0.0.0/0.0.0.0 line, and then add
http_access allow localnet
right *above* the http_access deny all line

run /etc/init.d/squid restart and have him put your IP w/ port 3128 as
his proxy server. 

-Mark


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Debian laptop and internet connection sharing

2004-02-23 Thread Micha Feigin
On Sun, Feb 22, 2004 at 03:18:49AM -0500, nick wrote:
 I sometimea use my Debian Laptop with a Wi-Fi card to access the Verizon 
 WiFi spots in Manhattan. My partner (in the ambulance) is finding it 
 increasingly difficult to find public WAP's.
 Would it be possible for him to plug a crossover cable into my RJ45 jack 
 and share my internet connection while I am connected to a WAP via my 
 WiFi card?
 I attempted to use Google, but could only find HowTo's regarding desktop 
 machines and standard NIC's. Any pointers to a guide or HowTo would be 
 appreciated.
 
 I also tried the reverse. Using his Window XP lgged into verizon, I 
 tried to enable ICS (internet connection sharing), I was able to get an 
 IP address on the debain laptop, but was not able to surf the web.

Probably not the problem, but with this setup using winxp,
Did you make sure both laptops have IPs on the same subnet on their
shared port.
I am guessing the wifi cards gets an address through dhcp. From my
experience you should set the local Ethernet (shared one) to
192.168.0.1 and the one on your laptop to 192.168.0.2. Make sure you
can ping 192.168.0.1 from your laptop (you may need to turn off the
winxp firewall on that port but not sure), and that works make your
laptop use the winxp as the router and dns server.

 
 
 Thanks,
 
 Nick
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 
 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.
 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Debian laptop and internet connection sharing

2004-02-22 Thread nick
I sometimea use my Debian Laptop with a Wi-Fi card to access the Verizon 
WiFi spots in Manhattan. My partner (in the ambulance) is finding it 
increasingly difficult to find public WAP's.
Would it be possible for him to plug a crossover cable into my RJ45 jack 
and share my internet connection while I am connected to a WAP via my 
WiFi card?
I attempted to use Google, but could only find HowTo's regarding desktop 
machines and standard NIC's. Any pointers to a guide or HowTo would be 
appreciated.

I also tried the reverse. Using his Window XP lgged into verizon, I 
tried to enable ICS (internet connection sharing), I was able to get an 
IP address on the debain laptop, but was not able to surf the web.

Thanks,

Nick

--
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]



Re: Debian laptop and internet connection sharing

2004-02-22 Thread Micha Feigin
On Sun, Feb 22, 2004 at 03:18:49AM -0500, nick wrote:
 I sometimea use my Debian Laptop with a Wi-Fi card to access the Verizon 
 WiFi spots in Manhattan. My partner (in the ambulance) is finding it 
 increasingly difficult to find public WAP's.
 Would it be possible for him to plug a crossover cable into my RJ45 jack 
 and share my internet connection while I am connected to a WAP via my 
 WiFi card?
 I attempted to use Google, but could only find HowTo's regarding desktop 
 machines and standard NIC's. Any pointers to a guide or HowTo would be 
 appreciated.
 
 I also tried the reverse. Using his Window XP lgged into verizon, I 
 tried to enable ICS (internet connection sharing), I was able to get an 
 IP address on the debain laptop, but was not able to surf the web.
 

I don't remember the exact settings, will check when I get home, but
you need the NAT options in the iptable settings, I don't remember if
there is an extra ip-forwarding option (don't think so).

You then need to set up a firewall with NAT support (you can use any of
the firewall tools to do that).
That should be enough, but you may need to also echo 1 into
/proc/sys/net/ipv4/ip_forward.

 
 Thanks,
 
 Nick
 
 
 -- 
 To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
 with a subject of unsubscribe. Trouble? Contact 
 [EMAIL PROTECTED]
 
 
 +++
 This Mail Was Scanned By Mail-seCure System
 at the Tel-Aviv University CC.


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED] 
with a subject of unsubscribe. Trouble? Contact [EMAIL PROTECTED]