yet another iptables problem


Subject: yet another iptables problem
From: Luna X (lunax@yahoo.com)
Date: Fri Feb 01 2002 - 10:54:45 MST


when I run this script:

#!/bin/bash
/sbin/ifconfig tun0 192.168.1.1
/sbin/iptables -D POSTROUTING -t nat -s 192.168.1.0/24
-d !
192.168.1.0/24 -j MASQUERADE >& /dev/null
/sbin/iptables -t nat -s 192.168.1.0/24 -d !
192.168.1.0/24 -A
POSTROUTING -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward

I get these errors:

SIOCSIFADDR: No such device
tun0: unknown interface: No such device
iptables: No chain/target/match by that name

I've done "mknod /dev/net/tun c 10 200" to set up a
tun device. I'm
using the 2.4.18-pre7-ben0 kernel and I'm pretty sure
I've compiled the
right iptables stuff into it.

any ideas?
r m

__________________________________________________
Do You Yahoo!?
Great stuff seeking new owners in Yahoo! Auctions!
http://auctions.yahoo.com



This archive was generated by hypermail 2a24 : Fri Feb 01 2002 - 11:10:19 MST