51

Odp: dysk sieciowy- prosze o pomoc

Ponownie: masz R1, do R1 dołączony komputer, do R1 dołączony R2 portem wan.
- R2 ma pracować jako router, wan ma mieć włączony
- R2 ma na na wan dostać adres od R1
- R2 na lan musi mieć inną adresację niż na wan
- na R2 na wanie masz mieć pootwierane porty od samby
- na R2 samba ma słuchać także na interfejsie wan

Musi działać.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

52

Odp: dysk sieciowy- prosze o pomoc

no ok czyli na R1 co mam ustawić - jakie porty mam przekierować ? na R2 ?

53

Odp: dysk sieciowy- prosze o pomoc

Na R1 nic. On przecież nie bierze w tym udziału poza ew daniem adresu dla komputera i R2. On nic wspólnego z dostępem do zasobu na R2 nie ma.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

54

Odp: dysk sieciowy- prosze o pomoc

no to ja już nic z tego nie wiem, bądz tak dobry i napisz mi po kolei co mam zrobić na R2 ?

55

Odp: dysk sieciowy- prosze o pomoc

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ę.

56

Odp: dysk sieciowy- prosze o pomoc

Masz listę, sprawdź po kolei czy to masz.

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

57

Odp: dysk sieciowy- prosze o pomoc

- jaki adres na wanie ma R2?

Masz niepotrzebny router, uszkodzony czy nie - chętnie przygarnę go.

58

Odp: dysk sieciowy- prosze o pomoc

Adres IP WAN:
192.168.11.129
Maska podsieci WAN:
255.255.255.0

59

Odp: dysk sieciowy- prosze o pomoc

wszystko jasne - poszło - źle wpisywałem...  adres sad sierota ze mnie.. przepraszam za zamieszanie - wszystko działa- dziękuję za pomoc.