Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--transproxy with --ftp=both can't connect to ftp #19

Open
laodc opened this issue Jul 9, 2020 · 5 comments
Open

--transproxy with --ftp=both can't connect to ftp #19

laodc opened this issue Jul 9, 2020 · 5 comments

Comments

@laodc
Copy link

laodc commented Jul 9, 2020

Can --transproxy work with --ftp?

/usr/bin/redir -nsp -I ftp21p --ftp=both :21 192.168.1.1:2100
ftp21p[27900]: Failed binding to outbound address: Cannot assign requested address

Without the -p it works as intended.

@troglobit
Copy link
Owner

Hi, this feature has not been tested by my since I took over the project. There is more information in the manual and the file transproxy.txt, included in the tarball.

@laodc
Copy link
Author

laodc commented Jul 9, 2020

Hi, this feature has not been tested by my since I took over the project. There is more information in the manual and the file transproxy.txt, included in the tarball.

Thanks for those links. It clarifies some things.

But it doesn't seem related to the error message. Why is it trying to bind to the outbound address?

@troglobit
Copy link
Owner

Really no clue, that was part of the original commit 9da9b3c from back in 1999. I've never taken the time to explore or test that part of the code. I've kept it intact though waiting for this day. You're as well equipped as I am to figure it out, and maybe help document it better.

If I'd have to venture a guess, it's either a bug, or it's something I don't understand related to the kernel's transparent proxy feature.

If it's a bug you could try removing the || transproxy part from the if-statement in target_connect()

@laodc
Copy link
Author

laodc commented Jul 9, 2020

I'll play around tonight and see what happens.

@troglobit
Copy link
Owner

@laodc hey, did you ever figure this one out?

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

No branches or pull requests

2 participants