[lug] remotely accessible sub-domain

Warren Sanders sanders at montanalinux.org
Tue Feb 25 15:10:57 MST 2003


jd wrote:
  > I agree this should be easy... just write nat rules to port forward
> from DSL public ip to Mainboxs ip then use iptables on the Mainbox
> to nat the ports you need to the other box. with teamwork
> of the dsl modem and Mainbox this can bee done.

Iptables would have been my first suggestion.  See: 
http://www.netfilter.org/documentation/HOWTO/NAT-HOWTO-10.html.  The example 
shows doing port 80, but I would only worry about doing this for ssh (22). 
For http, I would use virtual host containers in your http.conf to redirect. 
  This in any case would also require DNS record modifications for your 
virtual host.

Cheers,
-- 
Warren Sanders
http://MontanaLinux.Org





More information about the LUG mailing list