Hi,

I have solved my rlogin problem with a combination of ipfwadm and the
BSD netpipes distribution. I now have some other problems as I get on
the way to fixing this.

Here is my current status. I use "ipfwadm -I -a accept -p tcp -S
0.0.0.0/0 -D destination.com 513 -r 1040"

And this command:
"faucet 1040 --in --out sh -c "/root/rlogin-gate destination.com 513"

And this is the script:
#!/bin/sh -x

MINPORT=600
MAXPORT=1000
PORT_FILE=/tmp/rlogin-gate-port
HOSE=/usr/local/netpipes/bin/hose

. /etc/dhcpc/hostinfo-eth1

if [ -f $PORT_FILE ]; then
        USEPORT=`cat $PORT_FILE`
        let "USEPORT = USEPORT + 1"
        if [ $USEPORT -gt $MAXPORT ]; then
                USEPORT=$MINPORT
        fi
        echo $USEPORT > $PORT_FILE
        $HOSE $1 $2 --netslave --localport $USEPORT --localhost $IPADDR
else
        USEPORT=$MINPORT
        if [ $USEPORT -gt $MAXPORT ]; then
                USEPORT=$MINPORT
        fi
        echo $USEPORT > $PORT_FILE
        $HOSE $1 $2 --netslave --localport $USEPORT --localhost $IPADDR
fi

Not too hard, it gets us multiple rlogin sessions to the destination.
Now, that I've gotten this far, these rlogin/rsh commands run some
program that try to open up xterm's to the source machines. I need to
open up port 6400 to allow traffic to these machines. I suspect I need
to use ipautofw, but currently, the site is down. Where can I get a copy
of this program? And maybe someone can give me a pointer to how to
configure it after I do finally get a copy?

Thanks bunches,

Tom



_______________________________________________
Masq maillist  -  [EMAIL PROTECTED]
http://tiffany.indyramp.com/mailman/listinfo/masq
Admin requests can be handled by web (above) or [EMAIL PROTECTED]

Reply via email to