Lucas Neves Martins
snowniak at gmail.com
Fri Nov 30 06:24:35 PST 2007
I´m having the following problem:
Redirect requests from the port 80, to the port 8082. - for apache tomcat.
I´m new on freeBSD, Of course, I had looked out on google, and read the
firewall section on the Handbook.
But only found missed things, and nothing worked.
I have tried this commands:
#history | grep divert
422 ipfw add 950 divert 8082 tcp from any to any 80 via em0
425 ipfw add 950 divert 8082 tcp from any to any 80 via em0
428 ipfw add 950 divert 80 tcp from any to any 8082 via em0
432 ipfw add 950 divert 8082 tcp from any to any 80 via em0
435 ipfw add 950 divert 8082 tcp from any to any 80 via em0
I know how works the number 950, I know it is on the right position, but I
dont know how works the divert,
and even what it is. I dont know if "divert 8082" makes the requests come
from 80, or go to 80.
Any help will be useful.
PS: I´m trying to do this, to make the user "tomcat" run the apache-tomcat,
opening the port 8082, and make it
transparent to users who access the domain by the common port 80.
Snowniak - BR
More information about the freebsd-questions