Netfilter: Look up real destination IP address and port number after NATed
A user space server (or proxy daemon) may need to know the original IP address and port number of a connection before the connection is NATed (usually port redirection). This can be done easily with Netfilter/Linux. The steps are:
accept() a new connection: c = accept(s, (struct sockaddr*) &sin, &sinlen)
123
回覆刪除456
回覆刪除