[wplug] DSL Routing Issue

Wise, Jeremey WISEJ at PIOS.com
Thu May 8 10:22:09 EDT 2003


Thanks. I actually figured this out late last night. I appreciate the RSVP.

I have another question though. To save on cost I have the server running
headless (no monitor / mouse, just keyboard) and would like to do some
trapping of keystrokes to run scripts (such as stop DSL and shutdown
firewall). This is so I can modify or update my firewall, apply it, and if I
fat finger it I can have a user to to the keyboard and initiate a keystroke
to get it back to remote accessible.

The line I added into /etc/inittab was:

# Trap CTRL-ALT-F to shutdown firewall rules and disable Internet interface
ca::ctrlaltf:/etc/sysconfig/network-scripts/firewallstop.scp

This does not work. Unfortunately I did record the error as I forgot to copy
it out of dmesg before people fifo'd my ring with iptables logs. (People
were poking at the box even before I had it up for ten minutes).

Jeremey Wise (440)-519-6006
(CNE,MCSE,CSE)
Pioneer-Standard Electronics, Inc
wisej at pios.com
 

-----Original Message-----
From: Eric C. Cooper [mailto:ecc at cmu.edu] 
Sent: Wednesday, May 07, 2003 6:16 PM
To: 'wplug at wplug.org'
Subject: Re: [wplug] DSL Routing Issue

On Wed, May 07, 2003 at 03:07:50PM -0400, Wise, Jeremey wrote:
> I have setup a site with Linux and DSL. Alltel supplied a Efficient 5200
> bridge so I had to load PPPoE client. It actually installed and worked
like
> a charm.
> [...]
> The issue I have is that the Masquerading documents reflect IPChains which
> is no longer supported on the kernel I have. I tried to translate this to
> IPTables, and thought I did successfully but it still does not work. 
> [...]
> Here is what I type to get basic routing up (don't care about firewall at
> the moment).
> 
> echo 1 > /proc/sys/net/ipv4/ip_forward
> /sbin/iptables -t nat -A POSTROUTING -o eth1 -j MASQUERADE


s/eth1/ppp0/

Your outbound interface should be ppp0 (set up by pppoe), not the
underlying eth1.

-- 
Eric C. Cooper          e c c @ c m u . e d u
_______________________________________________
wplug mailing list
wplug at wplug.org
http://www.wplug.org/mailman/listinfo/wplug



More information about the wplug mailing list