forward DNS requests
hi,
can anyone help me nat the DNS requests, Quote:
Quote:
any chance to nat DNS request in the same way did above thank you. |
The protocol used by DNS is (usually) udp, and the port number is 53. Change the iptables line above accordingly, and it should work.
Is that your entire firewall setup? The only way the commands above can successfully forward requests to an internal web server without an entry in the FORWARD chain of the filter table, is if the FORWARD policy is ACCEPT. If so, your setup is horribly insecure. |
hi Ser Olmy,
thank for reply, i tried as you said, then i found the below result, Quote:
FOR YOUR INFORMATIOIN, my client is in other network, but client can connect to my other server in whcih we defined nating rule... |
DNS packets and ICMP echo requests (which is what "ping" sends) are two entirely different things.
It's not at all clear what you are trying to accomplish. Your first post indicates that the "client" and the DNS server are on different sides of the gateway, but the "ping" test you just performed only makes sense if they are on the same side. A simple diagram of your network would be a great help. |
All times are GMT -5. The time now is 05:39 PM. |