Skip to content

Add REMOTE_PORT from connection to environment#25

Open
mbroemme wants to merge 1 commit into
xinetd-org:masterfrom
mbroemme:master
Open

Add REMOTE_PORT from connection to environment#25
mbroemme wants to merge 1 commit into
xinetd-org:masterfrom
mbroemme:master

Conversation

@mbroemme

Copy link
Copy Markdown

I've added REMOTE_PORT into export of variable to the environment.
It is very useful if you transparent redirect connection from multiple
destinations to one service. (for example every outgoing SMTP connect
should go to 10.0.0.1)

If you want to process the connection from a script behind xinetd and
want to know the original destination you have to parse the output of
'/proc/net/nf_conntrack' which is hard if you want to assign at least
two connection from the same host to the same service. If you want to
make something while the connection is open you need to know REMOTE_HOST
and REMOTE_PORT.

@rephlex

rephlex commented Jul 4, 2018

Copy link
Copy Markdown

i need exactly THIS, right now.

@ltworf

ltworf commented Jul 4, 2018

Copy link
Copy Markdown
Contributor

This repo is dead, nobody active has commit rights to this. The active fork is on the opensuse organization.

@mbroemme

mbroemme commented Jul 4, 2018

Copy link
Copy Markdown
Author

@ltworf Do you have a link, so that I can create pull requests there maybe?

@rephlex

rephlex commented Jul 4, 2018

Copy link
Copy Markdown

@ltworf

ltworf commented Jul 4, 2018

Copy link
Copy Markdown
Contributor

I wrote about it on this issue: #30

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants