http://drax0r.livejournal.com/ ([identity profile] drax0r.livejournal.com) wrote in [personal profile] ehowton 2006-04-25 10:25 pm (UTC)

building a robotic version of one our guys out of bluetooth automatic handset lifters and power bricks

Might I suggest using an X-box?



I still need to learn IPchains and configure my new slackware 'router' at home

I highly suggest using an iptables cookbook/tutorial page. ipchains is for 2.2 kernels. iptables is the new hotness.

My NAT on sol is configured with one line in rc.inet1:
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE

I've also got a script set up to do port forwarding as necessary for things like VNC:

#!/bin/bash
ADDR=`ifconfig eth0|grep 'inet addr'| awk '{print $2}'| awk -F ":" '{print $2}'`

iptables -A PREROUTING -t nat -p tcp -d $ADDR --dport 5902 -j DNAT --to 192.168.1.44:5900
iptables -A OUTPUT -t nat -p tcp -d $ADDR --dport 5902 -j DNAT --to 192.168.1.44:5900
iptables -A PREROUTING -t nat -p tcp -d $ADDR --dport 5901 -j DNAT --to 192.168.1.4:5901
iptables -A OUTPUT -t nat -p tcp -d $ADDR --dport 5901 -j DNAT --to 192.168.1.4:5901

That's all. iptables is a very powerful tool, but it can also be implemented in a minimal way.



Today will be the second day in a row of NOT watching The Sopranos.

At the rate you're going you'll be able to watch season 5 on DVD right after you finish 4.



Pro-Truth is funny. BSG toys rock.

Love for the biographical information!

Post a comment in response:

This account has disabled anonymous posting.
If you don't have an account you can create one now.
HTML doesn't work in the subject.
More info about formatting