Synology Interface Bridge
To bridge the interfaces on a Synology NAS:
SSH in to the NAS, switch to root, and put this in a file named /root/make-bridge.sh:
#!/bin/sh
insmod /lib/modules/stp.ko
insmod /lib/modules/bridge.ko
brctl addbr br0
brctl stp br0 off
brctl addif br0 eth0
brctl addif br0 eth1
brctl show
ifconfig eth0 0.0.0.0 promisc up
ifconfig eth1 0.0.0.0 promisc up
ifconfig br0 192.168.0.10 netmask 255.255.255.0 up
route add default gw 10.10.221.1 dev br0
echo "1" > /proc/sys/net/ipv4/ip_forward
cp /root/make-bridge.sh /usr/syno/etc.defaults/rc.d/
chmod 755 /usr/syno/etc.defaults/rc.d/make-bridge.sh
Replace the 192.168.0.10 IP above with the static IP for the NAS.
Then run:
# chmod 755 make-bridge.sh
# ./make-bridge.sh
# cp make-bridge.sh /usr/syno/etc.defaults/rc.d/</pre>