Comments (6)
Host A and host B will need to have their ip address in the same range (i.e. both tinc network addresses should be in 192.168.100.0/24 - if you pop it in /16, then it will take over the addresses you're trying to route to, and you won't be able to route to them). So let's say 192.168.100.1/24 and 192.168.100.2/24.
Then, on host B, you'll want to enable ipv4 forwarding so that it will accept incoming packets for the 192.168.1.0/24 network. On all other machines, you'll want to add routes to 192.168.1.0/24 via 192.168.100.2 (host B). They intrinsically know how to reach 192.168.100.2 as it's on their subnet, then, when they send the packet to B, B knows how to reach 192.168.1.0/24 as it's on the other network card, so it'll forward that onto the host for you.
from tinc.
To share local network , you must run tinc on router. Also need to add tinc interface to bridge interface.
from tinc.
@wenerme 成功了吗?如何把tinc的接口进行桥接?
from tinc.
@liq05 参考我的笔记 https://github.com/wenerme/wener/blob/master/tricks/ops/network/private/tinc.md#route 后面有时间我会写一些博客
from tinc.
把转发打开,再把出口网卡设置成nat模式,把在hosts目录下的配置文件里吧本地网络ip加上,最后在目标机器上添加路由即可。
from tinc.
把转发打开,再把出口网卡设置成nat模式,把在hosts目录下的配置文件里吧本地网络ip加上,最后在目标机器上添加路由即可。
windows路由如何设置?我windows机器项访问linux客户端下的子网设备。linux nat转换、ip转发都设置了,windows添加要访问的子网走vpn接口,但是添加了路由实际上还是走的wlan,route add 192.168.2.0 mask 255.255.255.0 10.0.0.100 ,按说openvpn这样都没毛病呀,为什么这个就不行
from tinc.
Related Issues (20)
- Got bad ID from <unknown> HOT 2
- Error joining to Linux node from Windows
- this page is broken. https://www.tinc-vpn.org/examples/ipv6-network/ HOT 1
- Relaying doesn't work when TCPOnly is enabled
- Performance improvements via TSO/GRO and UDP_SEGMENT HOT 4
- Please add time when you output the log. There are too many retry link logs but do not know the time. HOT 1
- Peer has an invalid key! on tinc join
- DNS failure and delays break connections HOT 1
- Is the project still being maintained? HOT 20
- Which routing protocol does Tinc use in router mode? HOT 5
- [Bug] Adding a simple failing test case for sssp_bfs() HOT 3
- zip build HOT 3
- Invitation-generated tinc-up tries to set address/route before bringing up interface
- Handling 100+ groups? (+1 master) HOT 1
- server can not exchange the server‘s host HOT 1
- Peer tries to roll back protocol version to 17.0, Error while processing ID
- have the ability to compile with mbed-tls
- Question: Is there a limit/impact of huge amount of Subnet announcement?
- Compile with miniupnpc 2.2.8 fails
- systemd tinc.service gone after installing deb from Release section.
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from tinc.