|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
natd port_redirect
Hi. I am run FreeBSD 4.5 with 3 network cards. The machine is used for router, DNS and so on. One network card has public ip addres and other two private, but they are on diferent subnets. I have configured natd for forwarding all http traffic to an internal machin with web server.
natd.conf looks like this: port_redirect tcp 192.168.10.15:80 80 and i run natd like that: /sbin/natd -f /etc/natd.conf -n xl0 where xl0 is my outside network card As i said before i run DNS which is fully funcional. When i am accessing web from the outside natd is working just great but the problem is when i try to do it from inside of my network, it doesent work. I guess that i would have to redirect port 80 on internal card too but when i try to do that: /sbin/natd -f /etc/natd.conf -n rl0 i get an error: natd: Unable to bind divert socket.: Address already in use rl0 is my internal card and subnet(192.168.1.xxx) where all clients are and the internal server is on rl1(192.168.10.xxx) Any idea how to solve this would be great. |
|
#2
|
||||
|
||||
|
Sounds like, what you need is to set up a split-horizon DNS. See http://homepages.tesco.net/~J.deBoy...it-horizon.html and google for "split horizon dns" for more details.
__________________
Up the Irons What Would Jimi Do? Smash amps. Burn guitar. Take the groupies home. "Death Before Dishonour, my Friends!!" - Bruce D ickinson, Iron Maiden Aug 20, 2005 @ OzzFest Down with Sharon Osbourne Puzzle of the Month solved by sizeablegrin, etienne141 and L7Sqr, superior C/C++ programmers of the month |
|
#3
|
|||
|
|||
|
Thanx i will check it out.
Also i was today talking to some people and got sugestion to upgrade bind to 9.x and i can use views function to handle request from local network different than from the outside. |
![]() |
| Viewing: Dev Shed Forums > Operating Systems > BSD Help > natd port_redirect |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|