linux - Listen Socket and copy to another port -


i know each port can assigned 1 app. however, want this:

(1) want monitor port, such 80. port assigned app, such apache

(2) can copy every sockets sent port, , redirect ports port

i have searched tcpdump, can capture packets(with whole content). not how copy packets , send them port?

or, maybe there other tools can capture packet easily?

can give me details if want implement myself? because not @ socket programming.

as correctly noted, not able use socket packets port 80 easily. because if second socket receive packets port, need reuse port (so_reuseaddr option). if application third-party , cannot set option server socket, not work. probbaly try checking out scapy has option of sniffing packets , see if meets our requirement: http://www.secdev.org/projects/scapy/doc/usage.html .


Comments

Popular posts from this blog

Unable to remove the www from url on https using .htaccess -