Giter Site home page Giter Site logo

Comments (6)

stevesbrain avatar stevesbrain commented on August 20, 2024

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.

wenerme avatar wenerme commented on August 20, 2024

To share local network , you must run tinc on router. Also need to add tinc interface to bridge interface.

from tinc.

liq05 avatar liq05 commented on August 20, 2024

@wenerme 成功了吗?如何把tinc的接口进行桥接?

from tinc.

wenerme avatar wenerme commented on August 20, 2024

@liq05 参考我的笔记 https://github.com/wenerme/wener/blob/master/tricks/ops/network/private/tinc.md#route 后面有时间我会写一些博客

from tinc.

damnboy avatar damnboy commented on August 20, 2024

把转发打开,再把出口网卡设置成nat模式,把在hosts目录下的配置文件里吧本地网络ip加上,最后在目标机器上添加路由即可。

from tinc.

balck-paint avatar balck-paint commented on August 20, 2024

把转发打开,再把出口网卡设置成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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.