大网数据广告活动
服务器运维问答

Strange routing behavior, Synology combined with OpenVPN

· 52CE 我爱测

Essentially the setup I've got is WAN <-> OpenVPN running on OpenWRT running on WRT3200ACM <-> LAN -> Gigabit Switch -> RPI and synology The openVPN tun is working fine and dandy. I get an IP address, I can ping the GW on both IP…

问题原文

原帖链接 · ThomasRB · CC BY-SA 4.0

Essentially the setup I've got is

WAN <-> OpenVPN running on OpenWRT running on WRT3200ACM <-> LAN -> Gigabit Switch -> RPI and synology

The openVPN tun is working fine and dandy. I get an IP address, I can ping the GW on both IP ranges (192.168.1.1 and 192.168.8.1). Internet traffic is also routed through the tunnel. Through a Gigabit switch I have also connected a RPI and a Synology 918+. I have made a simplistic drawing, and I'm sorry that I'm not using standard/conventional symbols and lines.

On my laptop I connect to Internet through another wifi. I open the tunnel through my router and externally I appear with my GWs IP address. From my laptop I can also ping the RPI through the tunnel. All fine so far.

However, my Synology is invisible despite it physically being connected exactly the same way as the RPI. I expect the issue is with the Synology, but I am completely lost to be honest.

(The whole purpose of installing the VPN in the first place is to harden the Synology so I don't have to expose it directly to the Internet as I am doing today)

Routing table of RPI

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router.lan      0.0.0.0         UG    202    0        0 eth0
loopback        0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     202    0        0 eth0

Routing table of Synology

Kernel IP routing table
Destination     Gateway         Genmask         Flags Metric Ref    Use Iface
default         router.lan      0.0.0.0         UG    0      0        0 eth0
127.0.0.0       0.0.0.0         255.0.0.0       U     0      0        0 lo
192.168.1.0     0.0.0.0         255.255.255.0   U     0      0        0 eth0

Illustration of setup

已采纳解答

原帖链接 · ThomasRB · CC BY-SA 4.0

Turns out it had exactly the expected behavior considering I had enabled a firewall on the Synology.

The firewall on the Synology works.

That was a dumb misstake. Thank you Nikita for pointing out some direction on how to trubleshoot.

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2019-10-08)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。