[Firehol-support] webserver on lan

Avin Sigurani embiopterid at gmail.com
Mon Dec 31 02:50:08 GMT 2007


I have a web server on an internal machine and forward all web requests
to this machine.  This works fine for all machines external to the lan,
but machines on the lan cannot access the web server.  I saw this
solution:

snat to "${HOME_MYIP}" \ 
outface "${HOME_MYIF}" \ 
src "${HOME_LAN}" dst "${WEBSERVER}" 
 
 
dnat to ${WEBSERVER}:80 \ 
inface "${HOME_MYIF}" \ 
src "${HOME_LAN}" \ 
dst "${PUBLIC_MYIP}" proto tcp dport 80 
 
 
router lan2lan inface "${HOME_MYIF}" outface "${HOME_MYIF}" \ 
src "${HOME_LAN}" dst "${HOME_LAN}" 
server http accept 
server https accept 
 

However, I use dyndns and have a dynamic IP address.  How could I do
this in such a case?  





More information about the Firehol-support mailing list