[go: up one dir, main page]

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

Preserve dnat mapping when used with localnet. #476

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

gijsh
Copy link
@gijsh gijsh commented Sep 14, 2022

This allows using proxychains as a means of just changing the destination IP and port of network traffic similar to iptables DNAT without the need for root permissions.

Example usage:

localnet 127.0.0.0/8
dnat 1.1.1.1:1234 127.0.0.1:8123

This will redirect traffic to 1.1.1.1 on port 1234 to 127.0.0.1:8123.

This allows using proxychains as a means of just changing the
destination IP and port of network traffic similar to iptables DNAT
without the need for root permissions.

Example usage:

localnet 127.0.0.0/8
dnat 1.1.1.1:1234 127.0.0.1:8123

This will redirect traffic to 1.1.1.1 on port 1234 to 127.0.0.1:8123.
@rofl0r
Copy link
Owner
rofl0r commented Sep 14, 2022

would you mind adding a small paragraph to src/proxychains.conf so people reading about dnat and localnet can figure out this is possible ? otherwise this functionality will be available only to those who study the commit history.

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.

2 participants