开发者

rfc 2694 DNS_ALG implementation on nAT(iptables) , anyone?

开发者 https://www.devze.com 2023-02-13 01:09 出处:网络
Can anybody tell me if theres any packet modification lib/utility that allows people to modify the packet at app level before sending them through NAT ?

Can anybody tell me if theres any packet modification lib/utility that allows people to modify the packet at app level before sending them through NAT ?

eg. i want to change private ip returned in dns to its public equ开发者_JAVA技巧ivalent.

Answers that dont work: -I dont use static mapping from priv:public realms, so theres no question of setting up another dns server with public ips. -Use cisco router.

So in short any lib/utility that goes along with iptables and allows user to modify payload of for eg. DNS packets.

I do not want to buy


The QUEUE and NFQUEUE iptables targets pass the packet to a user-mode process, which is then free to drop the packet or modify it before sending on its way. The netfilter project provides a C library to take care of getting packets in/out of the kernel for you; there are high-level bindings available too (python-libnetfilter-queue and nfqueue-bindings cater for Python and Perl respectively).

Alternatively, write a proxy to sit in front of your nameserver.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号