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

NAT through ZeroTier [Question] #604

Closed
davidfries opened this issue Oct 18, 2017 · 2 comments
Closed

NAT through ZeroTier [Question] #604

davidfries opened this issue Oct 18, 2017 · 2 comments
Labels
Type: Question General questions about the product, plans, etc.

Comments

@davidfries
Copy link

Network Setup:

Public IP> Gateway> lan 192.168.2.0/24
| 2.208 | >zt0 192.168.11.0/24 ------------------ 192.16811.0/24 zt0 gw2 > LAN 192.168.5.0/24
|route 192.168.5.0/24 via 192.168.2.208 192.168.5.0/24 via 192.168.11.200

Would it be possible to send traffic coming in on a public IP and NAT it to an address that is reachable via ZeroTier? Obviously you would need SRC/DST NAT rules on each gateway, but has anyone else done this?

@glimberg
Copy link
Contributor

This is very much doable. Or you could set a ZeroTier device as a bridge and just make it one big LAN. Then you won't need SRC/DST NAT rules at all.

This link is OpenWRT/LEDE specific, but it gives you an idea: https://support.zerotier.com/knowledgebase.php?entry=show&search-for=&article=MzM0YjEyOGIwOGFlYzQwZDgxOTFmNzI2ZDM5M2JmZTE_

@davidfries
Copy link
Author

davidfries commented Oct 18, 2017

@glimberg
I have my 'gateways" on ZT set in bridge mode.
On the side with the public IP it goes Modem > Router > ubuntu running zt in bridge mode with appropriate static routes

Don't know if that makes a difference

@adamierymenko adamierymenko added the Type: Question General questions about the product, plans, etc. label Oct 23, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Question General questions about the product, plans, etc.
Projects
None yet
Development

No branches or pull requests

3 participants