| two parts to your question
1. how to hook 2 computers up wirelessly
(not hard, but try hardwired 1st)
2. how to use a direct (crossover) connection
to share an internet connection
when you say "vista but not for long" I hope you
mean, some version of *nix. Let us suppose so.
the secret is so-called IP-Masquerade, wherein the
machine with the net connection--dial-up, wired,
wireless, it doesn't matter--runs a short script
appended: you'll need to get appropriate kernel
modules and other facilities--whilst the 2nd
machine, that wants to piggyback, runs (as root)
this command:
route add -net 0.0.0.0 gw \
<whatever.IP.the.1st.machine.has>
there's not much to it. This machine is sharing a
connection w/ another, the other on wireless.
here's the script:
#!/bin/sh
# Basic firewall and forward/masquerade setup
PATH=/usr/sbin:/sbin:/bin:/usr/bin
# Delete/Flush old iptables rules
iptables -F
iptables -t nat -F
iptables -X
# Set up IP FORWARDing and Masquerading
iptables --table nat --append POSTROUTING --out-interface wlan0 -j MASQUERADE
echo "1" > /proc/sys/net/ipv4/ip_forward
#
#on other machine
#route add -net 0.0.0.0 gw <appropriate.IP.addr>
__________________
the sun is new every day (heraclitus)
|