wszystko dzieje się na R2 zrobiłem tak po wgraniu nowego Gargoyle:
ustawiłem Adres Ip LAN: 192.168.99.40
podłączyłem w UI zasób z USB
dodałem do zapory:
uci add firewall rule
uci set firewall.@rule[-1].name=a1
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=137
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a2
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=138
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a3
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=139
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a4
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=389
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a5
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=445
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a6
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=tcp
uci set firewall.@rule[-1].dest_port=901
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a7
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=137
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a8
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=138
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a9
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=139
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a10
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=389
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a11
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=445
uci commit firewall
uci add firewall rule
uci set firewall.@rule[-1].name=a12
uci set firewall.@rule[-1].src=wan
uci set firewall.@rule[-1].target=ACCEPT
uci set firewall.@rule[-1].proto=udp
uci set firewall.@rule[-1].dest_port=901
uci commit firewall
wykonałemdodanie do
/etc/config/samba
do sekcji "samba"
option interface 'loopback lan wan'
/etc/init.d/samba restart
restart rutera R2 i na komputerze 2( podłączonym po LAN do R2) widzę zasób a na komputerze 1 nie widzę.