Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 3 Apr 2002 15:32:35 -0800 (PST)
From:      kjhd kjsdfhk <juostaus@yahoo.com>
To:        freebsd-security@freebsd.org
Subject:   linksys 8 port router and ipfw
Message-ID:  <20020403233235.53970.qmail@web20510.mail.yahoo.com>

next in thread | raw e-mail | index | archive | help
--0-753884340-1017876755=:53824
Content-Type: text/plain; charset=us-ascii



        thanks in advance. i have 8 windows clients behind a linksys router (befsr81 with
     updated firmware) on a hub that links to a freebsd box (4.5 release) running natd and
     connected to the net via cable; no dhcp anywhere. i can make it work, BUT, i am unsure of
     how well i have done it and how well it is protected. i have omitted the more mundane lo0
     and spoofing entries for brevity. xl0 is internal interface.
     
     ipfw rules
     
         add divert natd all from any to any via xl1
         add check-state
         add allow tcp from "the-router" to any 22 in setup keep-state
         add deny tcp from any to any 22
         add allow all from "the-router" to any keep-state
         add allow all from any to any out
         default to deny

     #1 how can i change this so i doesn't suck and so the i can browse and ftp from
     bsd box?

     #2 see below, not as important as #1 but i didnt want to cross-post to questions.


     ***side note*** the strange thing about router. ssh works until i use the router.
     i googled and found other people that said to change to mtu on the nic and router,
     didnt work. the router only breaks ssh, (it is in /etc/hosts) you can still browse
     and ftp. remove the router and all works, without any other changes. i cheated and
     changed my sshd_config to listen on all interfaces and it will work through the
     router; not working on xl0 only xl1. i dont think this is, however, the best answer.

     again, i thank you all for any time and help.




---------------------------------
Do You Yahoo!?
Yahoo! Tax Center - online filing with TurboTax
--0-753884340-1017876755=:53824
Content-Type: text/html; charset=us-ascii

<P><BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; thanks in advance. i have 8 windows clients behind a linksys router (befsr81 with<BR>&nbsp;&nbsp;&nbsp;&nbsp; updated firmware) on a hub that links to a freebsd box (4.5 release) running natd and<BR>&nbsp;&nbsp;&nbsp;&nbsp; connected to the net via cable; no dhcp anywhere. i can make it work, BUT, i am unsure of<BR>&nbsp;&nbsp;&nbsp;&nbsp; how well i have done it and how well it is protected. i have omitted the more mundane lo0<BR>&nbsp;&nbsp;&nbsp;&nbsp; and spoofing entries for brevity. xl0 is internal interface.<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp; ipfw rules<BR>&nbsp;&nbsp;&nbsp;&nbsp; <BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add divert natd all from any to any via xl1<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add check-state<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add allow tcp from "the-router" to any 22 in setup keep-state<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add deny tcp from any to any 22<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add allow all from "the-router" to any keep-state<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; add allow all from any to any out<BR>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; default to deny<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; #1 how can i change this so i doesn't suck and so the i can browse and ftp from<BR>&nbsp;&nbsp;&nbsp;&nbsp; bsd box?<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; #2 see below, not as important as #1 but i didnt want to cross-post to questions.<BR><BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; ***side note*** the strange thing about router. ssh works until i use the router.<BR>&nbsp;&nbsp;&nbsp;&nbsp; i googled and found other people that said to change to mtu on the nic and router,<BR>&nbsp;&nbsp;&nbsp;&nbsp; didnt work. the router only breaks ssh, (it is in /etc/hosts) you can still browse<BR>&nbsp;&nbsp;&nbsp;&nbsp; and ftp. remove the router and all works, without any other changes. i cheated and<BR>&nbsp;&nbsp;&nbsp;&nbsp; changed my sshd_config to listen on all interfaces and it will work through the<BR>&nbsp;&nbsp;&nbsp;&nbsp; router; not working on xl0 only xl1. i dont think this is, however, the best answer.<BR><BR>&nbsp;&nbsp;&nbsp;&nbsp; again, i thank you all for any time and help.<BR></P><p><br><hr size=1><b>Do You Yahoo!?</b><br>
<a href="$rd_url/welcome/?http://taxes.yahoo.com/">Yahoo! Tax Center</a> - online filing with TurboTax
--0-753884340-1017876755=:53824--

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-security" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20020403233235.53970.qmail>