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

Ip forwarding between two linux server #170

Closed
MHmansouri opened this issue Dec 11, 2022 · 3 comments
Closed

Ip forwarding between two linux server #170

MHmansouri opened this issue Dec 11, 2022 · 3 comments
Labels

Comments

@MHmansouri
Copy link

I have two linux server to run a vpn server, one from Germany and other in Iran, but in Iran because of some policy for hard filtering after two or something like that in hour my Germany ip is filtered. How can i forwarding ip to my Germany server without leaking information or anyway for securely to do that?

I do some basic ip forwarding and cause this problem...

@seniormmd1
Copy link

seniormmd1 commented Dec 11, 2022

تلکرام به من پیام بده یادت بدم @[REDACTED]

Telegram send me a message @[REDACTED]

@wkrp wkrp added the Iran label Dec 11, 2022
@wkrp
Copy link
Member

wkrp commented Dec 11, 2022

@MHmansouri you probably want to read existing threads on multi-hop proxies for Iran.

This forum is not for user support or troubleshooting. There are other places that are better for that. Here, it is best if you can provide technical detail that is useful for researchers or developers.

@farhadsaberi
Copy link

sysctl net.ipv4.ip_forward=1
iptables -t nat -A PREROUTING -p tcp --dport 22 -j DNAT --to-destination 'Ip-Server-Germany'
iptables -t nat -A PREROUTING -j DNAT --to-destination 'Ip-Server-Iran'
iptables -t nat -A POSTROUTING -j MASQUERADE

@wkrp wkrp closed this as completed Dec 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

4 participants