dlostboy (at) lostinfo (dot) com 

Home | Journal | Multimedia | Files | Other | Links | About

      FreeBSD 4.0 HOWTO for adding the ability to pcANYWHERE to your IPFilter

Updated
In 5.0, this is SOOO much easier. Just put a line like this:

       rdr xl0 0.0.0.0/0 port 3389 -> 10.0.0.230 port 3389 tcp/udp
       
to redirect remote desktop for instance (better then pcAnywhere for just desktop use).
Back to 4.0 instructions:


Ok, so there comes a time when you think that being able to pcANYWHERE to your home desktop through your FreeBSD router would be great. How do you get IPFilter to let that traffic in? First, lets lay out the scenario...(this assumes you followed my HOWTO for ipfilter/ipnat)
  • FreeBSD machine on Cable/DSL
  • Exterior interface is 123.123.123.123 for augument and 10.0.0.1 internally.
  • Your pcANYWHERE-able machine is at 10.0.0.3 (change the nat_rules.master otherwise)
  • Here's what you do: (commands will appear in yellow)

  • Copy this new ipf_rules.master into your /usr/local/etc/
  • Copy this new 060.ipnat.sh into /usr/local/etc/rc.d
  • Copy this new nat_rules.master into /usr/local/etc/
  • /usr/local/etc/rc.d/050.ipf.sh;/usr/local/etc/rc.d/060.ipnat.sh
  • Now what will happen is that traffic coming in on ports 5631 and 5632 will get redirected to your 10.0.0.3 machine internally.

     
     

      ©2000, ©2001 LostInformation