Skip to Content.
Sympa Menu

baslinux - Re: [BL] gateway between two laptops

baslinux AT lists.ibiblio.org

Subject: Baslinux mailing list

List archive

Chronological Thread  
  • From: baslinux AT lists.ibiblio.org
  • To: baslinux AT lists.ibiblio.org
  • Subject: Re: [BL] gateway between two laptops
  • Date: Mon, 25 Aug 2008 08:09:36

On 25 Aug 08 at 14:32, baslinux AT lists.ibiblio.org
<baslinux AT lists.ibiblio.org> wrote:

>ipchains -A forward -i eth0 -j MASQ

Thank, you, Steven. It obviously was the ethN parameter that
was missing. Now the gateway is working. I probably can even log
in with DOS from the client machine.

Here is the summary:

------ GW-UP -------------
#!/bin/sh
# load drivers eth0 = LAN ethernet PCI, eth1 = wireless PCMCIA
insmod eepro100
/etc/pcmcia/start
# connect to internet router
udhcpc -i eth1
# connect to LAN
ifconfig eth0 192.168.1.1
# enable forwarding
ipchains -P forward DENY
ipchains -A forward -i eth1 -j MASQ
echo 1 > /proc/sys/net/ipv4/ip_forward
---------------------------

------ LAN-UP -------------
#!/bin/sh
# load driver eth0 = LAN ethernet PCMCIA
/etc/pcmcia/start
# connect to LAN
ifconfig eth0 192.168.1.2
# establish up gateway to share internet connection
route add default gw 192.168.1.1
---------------------------

Christof

________________________________________________________________

Ceskobratrska cirkev evangelicka - Betlemska kaple na Zizkove
Prokopova 4/216, 130 00 Praha 3, Czech Republic
Tel. (+420) 222 78 06 73 / 222 78 20 02 / 603 18 87 53
http://www.volny.cz/cce.zizkov





Archive powered by MHonArc 2.6.24.

Top of Page