MOL ethernet
Robert Bar
mol-general@lists.maconlinux.org
Thu, 22 Aug 2002 08:42:13 +0200
At 17:55 Uhr -0700 21.08.2002, Bill Mueller wrote:
(please stop sending html - thx)
> ...
> There must be something simple I am missing. Any ideas?
don't know about something 'missing', but i ran into similar problems
when i was upgrading to .64 last week.
simply replacing /etc/mol/tunconfig by my 'old'-one
(/usr/lib/mol/bin/tunconfig - [1]) solved the probs.
here it is:
pmac.domain [2] 192.168.1.201 - no dhcpd running, i'm using fixed
adresses on whole my LAN.
tun.domain 192.168.2.1
macos.domain 192.168.2.2 - (9.0.4)
======/etc/mol/tunconfig=================
#!/bin/bash
/sbin/ifconfig tun0 192.168.2.1
/sbin iptables -D POSTROUTING -t nat -s 192.168.2.0/24 -d !
192.168.2.0/24 -j MASQUERADE >& /dev/null
/sbin/iptables -t nat -s 192.168.2.0/24 -d ! 192.168.2.0/24 -A
POSTROUTING -j MASQUERADE
echo 1 > /proc/sys/net/ipv4/ip_forward
# make it executable - chmod 755
=========================================
hth
robert
[1] <http://maconlinux.org/lists/mol-general/August01/0056.html>
[2] /etc/network/interfaces: address 192.168.1.201
netmask 255.255.255.0
network 192.168.1.0
broadcast 192.168.1.255
gateway 192.168.1.211