Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: dsl gateway< Next Oldest | Next Newest >
morchel Offline





Group: Members
Posts: 6
Joined: Feb. 2004
Posted: Feb. 06 2004,02:21 QUOTE

Hi

I just downloaded and tried dsl - great work :) .

No I had the idea to use dsl as a simple gateway (without firewall etc), but ip forwarding isn't turned on and everthing is readonly. Is there a way to do it (without harddisk-install)? Has anybody done that before?

Regards - Morchel
Back to top
Profile PM 
pipo Offline





Group: Members
Posts: 16
Joined: Jan. 2004
Posted: Feb. 07 2004,23:06 QUOTE

There was a project that do a simple gataeway on a floppy,
based on linux
It's called LRP (Linux Router Project), try this link
LRP
Back to top
Profile PM 
morchel Offline





Group: Members
Posts: 6
Joined: Feb. 2004
Posted: Oct. 23 2004,16:18 QUOTE

I finally had some time to get it working with dsl 0.8.1.1.

I wrote a script which configures ip-forwarding using iptables and sets the routing for my intranet. I put that script in /usr/sbin and added the name to my filetool.lst:


#!/bin/sh
# second (internal) network-device
ifconfig eth1 192.168.1.1 netmask 255.255.255.0 broadcast 192.168.1.255 up  > /dev/null

# set routing for internal network
route add -net 192.168.1.0 netmask 255.255.255.0 gw 192.168.1.1 eth1  > /dev/nu l

# firewall ruleset
/etc/rc.d/rc.firewall-2.4

# change hostname
hostname gate  > /dev/null



I made myself an iso with iptables in the root directory so when dsl starts up its already included. Thanks a lot to gui for providing the iptables.dsl.

I made a /etc/rc.d directory and put in the firewall-script (rc.firewall-2.4) which I got from the Linux IP Masquerade HOWTO. http://en.tldp.org/HOWTO/IP-Masquerade-HOWTO/firewall-examples.html. I just had to change the location of iptables and adapt the net-settings to my personal ones. It's just a test-script but at the moment it works perfectly for me.

Is /etc/rc.d a proper directory for that kind of scripts?

Ideas, thoughts, improvements, criticism, any reaction is welcome

Regards Morchel
Back to top
Profile PM 
2 replies since Feb. 06 2004,02:21 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: dsl gateway

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code