Hello,
This is what I'm trying to achieve. I'm running Apache on port 12345, I want all the requests (packets) from port 80 to be redirected to port 12345 on the same interface. (ipv4 + IPV6). I'm using ipfw on FreeBSD 10. The server has only one NIC card. I have tried the following.
It does not work (i.e. I'm unable to make a connection). I'm able to connect to port 12345 and get HTMLs etc. Is there something I'm missing?
-Thanks in Advance
Vijay
This is what I'm trying to achieve. I'm running Apache on port 12345, I want all the requests (packets) from port 80 to be redirected to port 12345 on the same interface. (ipv4 + IPV6). I'm using ipfw on FreeBSD 10. The server has only one NIC card. I have tried the following.
Code:
ipfw add 102 fwd x.x.x.x,12345 tcp from any to me 80 in
It does not work (i.e. I'm unable to make a connection). I'm able to connect to port 12345 and get HTMLs etc. Is there something I'm missing?
-Thanks in Advance
Vijay