Hi,
Ok I *think* I'm getting just a little further with things. I've managed to work
out the correct sequence of programs that I need to run in order to get things
to run properly.
BTW I have "swat" and "samba" installed do these affect iptables in any way?
Here's the sequence of events; They are as follows;
1. Stop the apache web server with "apachectl stop". (This seems to be installed
by default by slackware 10).
2. Change the linux USB driver (modprobe -r uhci, then usb-uhci).
3. Start up ip-tables, ip conntrack and iptable nat with modprobe.
(BTW the modules are all, in slackware 10, in /lib/modules/2.4.26/kernel/net/
ipv4/netfilter, they all end in .o.gz).
4. Setup the wireless (radio) network card with iwconfig and ipconfig.
5. Connect to the internet.
--
6. Connect to the linux box with the windows box (the network cards, not the
actual network. This is done with some software that comes with the radio
network card for windows 2000).
7. Ping the linux box on the windows box, eg ping 192.168.0.10 (and in the
same vein after I run the script below, on the linux box ping 192.168.0.1).
--
Linux box: IP = 192.168.0.10
Win2K box: IP = 192.168.0.1
Distro : Slackware 10
Kernel : 2.4.26
--
I've made this script which does it all for me (apart from the pinging);
<----
#!/bin/sh
clear
echo "Stopping apache"
apachectl stop
echo "Changing USB drivers"
modprobe -r uhci
modprobe usb-uhci
echo "IP Tables"
modprobe ip_tables
modprobe ip_conntrack
modprobe iptable_nat
echo "Configuring wlan0"
iwconfig wlan0 mode ad-hoc channel 10 essid okwlan
ifconfig wlan0 192.168.0.10
ifconfig wlan0 up
echo "Startmodem"
startmodem
---->
BTW if I just tried to insmod iptable_nat by itself in the /lib/modules...
directory, I got lots of messages about "unresolved symbols" just like I got
under mandrake 10.
I've also decided to use a different windows 2000 box I started with a
completely fresh install of windows 2000. The only thing it has installed is
a default windows 2000 install and the software for its wireless network card.
I've been trying some of the earlier rules for ip_tables on this page and it "almost" works. Almost in
the sense that the windows 2000 box, once connected (and it can ping 192.168.0.10, the linux box IP (the
windows box is 192.168.0.1)); I can see it trying to do something and it's trying to connect to 192.168.0.10
but fails each time, it tries 4 times and gives up. I'm still thinking maybe there's a problem with the
iptables rules somewhere?
Here's an output of my iptables:
Code:
Chain INPUT (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 ACCEPT all -- lo any localhost anywhere
0 0 DROP all -- any any anywhere anywhere state INVALID
108 22071 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
78 4363 ACCEPT all -- wlan0 any localnet/24 anywhere
52 2536 DROP all -- ppp0 any anywhere anywhere state NEW
Chain FORWARD (policy DROP 0 packets, 0 bytes)
pkts bytes target prot opt in out source destination
0 0 DROP all -- any any anywhere anywhere state INVALID
0 0 ACCEPT all -- any any anywhere anywhere state RELATED,ESTABLISHED
0 0 ACCEPT all -- wlan0 any localnet/24 anywhere
0 0 DROP all -- ppp0 any anywhere anywhere state NEW
Chain OUTPUT (policy ACCEPT 271 packets, 21446 bytes)
pkts bytes target prot opt in out source destination
BTW what I meant earlier when I asked if I was doing things right I was meaning am I going about
this the correct way or not? Or am I trying to do everything in reverse and the "hard way"?