| [TURTORIAL] Podłączenie drukarki na Tomato | 
| esem | Dodano 18-08-2021 15:55 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | Dokładnie tak jest. Jak rozwiązać problem - oto jest pytanie? Czyli skutecznie otworzć port 6566. 
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 | 
|  | 
| Adooni | Dodano 18-08-2021 19:40 | 
|  
 VIP
 
  
 
 Posty: 2366
 Dołączył: 02/02/2011 04:29
 
 
 | otworz rowniez UDP 
 
  iptables -I INPUT -p udp --dport 6566 -j ACCEPT
 i potem jeszcze output
 
 
 iptables -I OUTPUT -p tcp --dport 6566 -j ACCEPTiptables -I OUTPUT -p udp --dport 6566 -j ACCEPT
 Orange 300/50 Mb/s + ONT Terminal HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
 HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
 Asus RT-AC68U AccessPoint
 | 
|  | 
 
 | 
|  | 
| esem | Dodano 19-08-2021 07:25 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | "Nie można nawiązać połączenia ponieważ komputer docelowy aktywnie go odmawia 192.XXX.XX.1:6566" - komunikat SANEWinDS Firewall:
 
 iptables -I INPUT -p tcp --dport 6566 -j ACCEPTiptables -I OUTPUT -p tcp --dport 6566 -j ACCEPT
 iptables -I INPUT -p udp --dport 6566 -j ACCEPT
 iptables -I OUTPUT -p udp --dport 6566 -j ACCEPT
xinetd.d > saned
 
 service saned{
 type = UNLISTED
 port = 6566
 socket_type = stream
 server = /opt/sbin/saned
 protocol = tcp
 user = root
 group = root
 wait = no
 disable = no
 }
Pomysły? Jak sprawdzić czy port w tomato jest otwarty?
 
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 | 
|  | 
| Adooni | Dodano 19-08-2021 09:24 | 
|  
 VIP
 
  
 
 Posty: 2366
 Dołączył: 02/02/2011 04:29
 
 
 | pokaz 
 
 
 Orange 300/50 Mb/s + ONT Terminal HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
 HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
 Asus RT-AC68U AccessPoint
 | 
|  | 
 
 | 
|  | 
| esem | Dodano 19-08-2021 09:34 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | Czyli port 6566 nie jest otwarty? Dobrze widzę? 
 
 root@Asus:/tmp/home/root# cat /etc/iptables*mangle
 :PREROUTING ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 -I PREROUTING -i vlan2 -j DSCP --set-dscp 0
 -I FORWARD -p tcp --tcp-flags SYN,RST SYN -j TCPMSS --clamp-mss-to-pmtu
 -A PREROUTING -i vlan2 -d 192.168.17.1/255.255.255.0 -j DROP
 COMMIT
 *nat
 :PREROUTING ACCEPT [0:0]
 :POSTROUTING ACCEPT [0:0]
 :OUTPUT ACCEPT [0:0]
 :WANPREROUTING - [0:0]
 -A PREROUTING -d 87.99.9.29 -j WANPREROUTING
 -A WANPREROUTING -p icmp -j DNAT --to-destination 192.168.17.1
 -A WANPREROUTING -p tcp  --dport 63666 -j DNAT --to-destination 192.168.17.70
 -A WANPREROUTING -p udp  --dport 63666 -j DNAT --to-destination 192.168.17.70
 -A POSTROUTING  -o vlan2 -j MASQUERADE
 -A POSTROUTING -o br0 -s 192.168.17.1/255.255.255.0 -d 192.168.17.1/255.255.255.0 -j SNAT --to-source 192.168.17.1
 COMMIT
 *filter
 :INPUT DROP [0:0]
 :OUTPUT ACCEPT [0:0]
 -A INPUT -m state --state INVALID -j DROP
 -A INPUT -m state --state RELATED,ESTABLISHED -j ACCEPT
 -N shlimit
 -A shlimit -m recent --set --name shlimit
 -A shlimit -m recent --update --hitcount 4 --seconds 60 --name shlimit -j DROP
 -A INPUT -p tcp --dport 63667 -m state --state NEW -j shlimit
 -N wwwlimit
 -A wwwlimit -m recent --set --name www
 -A wwwlimit -m recent --update --hitcount 15 --seconds 5 --name www -j DROP
 -A INPUT -p tcp --dport 8081 -m state --state NEW -j wwwlimit
 -A INPUT -i lo -j ACCEPT
 -A INPUT -i br0 -j ACCEPT
 -A INPUT -p tcp  --dport 8081 -j ACCEPT
 -A INPUT -p tcp  --dport 63667 -j ACCEPT
 :FORWARD DROP [0:0]
 -A FORWARD -i br0 -o br0 -j ACCEPT
 -A FORWARD -m state --state INVALID -j DROP
 :wanin - [0:0]
 :wanout - [0:0]
 -A FORWARD -m state --state RELATED,ESTABLISHED -j ACCEPT
 -A FORWARD -i vlan2 -j wanin
 -A FORWARD -o vlan2 -j wanout
 -A FORWARD -i br0 -j ACCEPT
 -A wanin  -p tcp -m tcp -d 192.168.17.70 --dport 63666 -j ACCEPT
 -A wanin  -p udp -m udp -d 192.168.17.70 --dport 63666 -j ACCEPT
 COMMIT
 root@Asus:/tmp/home/root#
 
 Scalony z 19 sierpnia 2021 09:39:44:
 Skaner jest dostępny i widoczny. Ale spod windy nie idzie się do niego dostać.
 
 
 root@Asus:/tmp/home/root# scanimage -Ldevice `hpaio:/usb/Deskjet_1510_series?serial=CN3AT1NGJ905XJ' is a Hewlett-Packard Deskjet_1510_series all-in-one
 root@Asus:/tmp/home/root#
 
Edytowany przez esem dnia 19-08-2021 09:39
 
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 | 
|  | 
| Adooni | Dodano 19-08-2021 13:41 | 
|  
 VIP
 
  
 
 Posty: 2366
 Dołączył: 02/02/2011 04:29
 
 
 | jak widac temat dosc stary i program jest tylko pod wersje win 32bit https://sanetwain.ozuzo.net/
 
 
 
 SaneTwain is only available in a 32-bit version, and the TWAIN datasource does not seem to work properly in a 64-bit Windows. 64-bit versions of SaneTwain are not in the planning - too much work and too costly a compiler-upgrade.
 Orange 300/50 Mb/s + ONT Terminal HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
 HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
 Asus RT-AC68U AccessPoint
 | 
|  | 
 
 | 
|  | 
| esem | Dodano 19-08-2021 13:44 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | Czyli możemy temat SANE olać ciepłym m....m   
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 | 
|  | 
| Adooni | Dodano 19-08-2021 15:11 | 
|  
 VIP
 
  
 
 Posty: 2366
 Dołączył: 02/02/2011 04:29
 
 
 | mozesz jeszcze to sprobowac https://sourceforge.net/projects/sane...sanewinds/ 
 Orange 300/50 Mb/s + ONT Terminal HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
 HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
 Asus RT-AC68U AccessPoint
 | 
|  | 
 
 | 
|  | 
| esem | Dodano 19-08-2021 16:40 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | Przecież to też nie działa spod windy64. Czytaj poprzednie posty.
 
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 | 
|  | 
| Adooni | Dodano 19-08-2021 17:54 | 
|  
 VIP
 
  
 
 Posty: 2366
 Dołączył: 02/02/2011 04:29
 
 
 | przeciez w changelog masz napisane 
 
 Version 0.9.5418-Fixed installation to incorrect TWAIN folder in 32-bit Windows and unified 32-bit and 64-bit installers
 
 albo wiki installation
 
 
 Installers are available on the Files page now, so the information below is for historical reference only.
 Standalone:
 
 Create a folder anywhere you like ("C:\Program Files\SaneWin" for example). Copy into that folder the following files:
 SANEWin.exe
 SANEWinDS.dll
 INIFile.dll
 iTextSharp.dll
 NLog.dll
 NLog.config
 
 TWAIN Data Source:
 
 In the Windows TWAIN folder ("C:\Windows\twain_32" on 64 bit Windows, "C:\Windows\twain" on 32 bit Windows) create a new folder named SANEWinDS. Copy into that folder the following files:
 SANEWinCDS32.ds
 SANEWinDS.dll
 INIfile.dll
 NLog.dll
 NLog.config
 
 TWAIN should now see SANEWinDS as a data source. If you are installing to a Citrix XenApp server, disable TWAIN redirection in your Citrix policy. It only gets in the way.
 Orange 300/50 Mb/s + ONT Terminal HPE MS gen8 Proxmox 7.0-11 VMs: Router OPNsense 23.X-amd64 and OMV
 HPE MicroServer gen8: Xeon E3-1265Lv2, 16GB (2x KTH-PL316E/8G), HP 331T, 4x4TB WD RED
 Asus RT-AC68U AccessPoint
 | 
|  | 
 
 | 
|  | 
| esem | Dodano 20-08-2021 07:50 | 
|  
 Super User
 
  
 
 Posty: 522
 Dołączył: 05/02/2007 20:42
 
 
 | Wszystko się zgadza - tylko że nie działa: 
 "Nie można nawiązać połączenia ponieważ komputer docelowy aktywnie go odmawia 192.XXX.XX.1:6566" - komunikat SANEWinDSTomato nawet nie połaskotało:
 
 Aug 20 07:45:00 Asus kern.info kernel: usb 2-1: new high speed USB device using ehci_hcd and address 2Aug 20 07:45:00 Asus kern.info kernel: scsi0 : usb-storage 2-1:1.0
 Aug 20 07:45:01 Asus kern.notice kernel: scsi 0:0:0:0: Direct-Access     Generic  Flash Disk       8.07 PQ: 0 ANSI: 4
 Aug 20 07:45:01 Asus kern.notice kernel: sd 0:0:0:0: [sda] 3932160 512-byte logical blocks: (2.01 GB/1.87 GiB)
 Aug 20 07:45:01 Asus kern.notice kernel: sd 0:0:0:0: [sda] Write Protect is off
 Aug 20 07:45:01 Asus kern.debug kernel: sd 0:0:0:0: [sda] Mode Sense: 23 00 00 00
 Aug 20 07:45:01 Asus kern.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
 Aug 20 07:45:01 Asus kern.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
 Aug 20 07:45:01 Asus kern.info kernel:  sda: sda1
 Aug 20 07:45:01 Asus kern.err kernel: sd 0:0:0:0: [sda] Assuming drive cache: write through
 Aug 20 07:45:01 Asus kern.notice kernel: sd 0:0:0:0: [sda] Attached SCSI removable disk
 Aug 20 07:45:01 Asus user.info hotplug[27248]: USB ext3 fs at /dev/sda1 mounted on /tmp/mnt/ENTWARE
 Aug 20 07:45:01 Asus kern.info kernel: EXT4-fs (sda1): mounted filesystem with ordered data mode. Opts:
 Aug 20 07:45:02 Asus user.debug wsdd2[969]: 'Terminated' signal received.
 Aug 20 07:45:02 Asus user.info wsdd2[969]: terminating.
 Aug 20 07:45:02 Asus user.info preinit[1]: Samba daemon is started
 Aug 20 07:45:02 Asus user.info wsdd2[27262]: starting.
 Aug 20 07:45:34 Asus kern.info kernel: usb 2-2: new high speed USB device using ehci_hcd and address 3
 Aug 20 07:45:34 Asus kern.info kernel: usblp0: USB Bidirectional printer dev 3 if 1 alt 0 proto 2 vid 0x03F0 pid 0xC111
 Asus RT-AC56U @1000/666  + aktualne tomato 
Fonera 2100/200 | DD-WRTv24sp2 
W rezerwie: 
ADB VV5822 
Netgear WNR3500L/U/v2 (wg. tomato). Ale to jest WNR3500L v.1   | 
|  | 
 
 |