Temat: tunnel gmail SSL

Dzień dobry wieczór,

Mam urządzenie wielofunkcyjne Brother MFC-9840CDW połączony kablem RJ-45 z ruterem TL-WR1043ND OpenWrt Backfire 10.03.1-RC6 / LuCI 0.10 Branch (0.10+svn7967)

Mam problem z skonfigurowaniem klienta smtp/pop gmail na drukarce, aby brother wysyłam np. skany na e-maila.

Serwer gmail wymaga SSL, a w configu Brothera nie ma opcji SSL. Wujek Google to potwierdza.

Próbowałem Tunneling pop3/smtp to gmail SSL pop3s/smtps using xinetd on Linux

Hi,

My Brother MFC-9840cdw multi-functional printer/scanner/coper/fax can scan to email. However gmail requires SSL, which the printer is not able to support. Using xinetd and openssl, my Linux machine is able to proxy local pop3 requests to gmail’s SSL pop3s service, and local smtp requests to gmail’s SSL smtps service.

Here are the basics on what you need. These ideas are not original.

Tunneling smtp to smtps

# xinetd: tunnel local smtp to gmail smtps

service smtp
{
  disable = no
  socket_type = stream
  wait = no
  user = root
  server = /etc/xinetd.d/extra/gmailsmtpstunnel.sh
  only_from = 0.0.0.0
}

#####################################################################
# Instructions
#
#
# 1) Copy this entire file to /etc/xinetd.d/gmailsmtpstunnel
#
# 2) Create the following script in:
#      /etc/xinetd.d/extra/gmailsmtpstunnel.sh
# --------------------------------------
# #!/bin/sh
# /usr/bin/openssl s_client -quiet -connect smtp.gmail.com:465 2>/dev/null
# --------------------------------------
# 3) Change the permissions
#     chmod 755 /etc/xinet.d/extra/gmailsmtpstunnel.sh
# 4) Restart xinetd
#      /etc/init.d/xinetd restart
# 5) Test the tunnel
#      telnet localhost 25
# 6) Point your mail smtp server to here

Tunneling pop3 to pop3s

# xinetd: tunnel local pop3 to gmail pop3s

service pop3
{
  disable = no
  socket_type = stream
  wait = no
  user = root
  server = /etc/xinetd.d/extra/gmailpop3stunnel.sh
  only_from = 0.0.0.0
}

#####################################################################
# Instructions
#
#
# 1) Copy this entire file to /etc/xinetd.d/gmailpop3stunnel
#
# 2) Create the following script in:
#      /etc/xinetd.d/extra/gmailpop3stunnel.sh
# --------------------------------------
# #!/bin/sh
# /usr/bin/openssl s_client -quiet -connect pop.gmail.com:995 2>/dev/null
# --------------------------------------
# 3) Change the permissions
#     chmod 755 /etc/xinet.d/extra/gmailpop3stunnel.sh
# 4) Restart xinetd
#      /etc/init.d/xinetd restart
# 5) Test the tunnel
#      telnet localhost 110
# 6) Point your mail smtp server to here

log

Nov 28 21:12:01 OpenWrt daemon.err xinetd[7111]: /etc/xinetd.d/extra is not a regular file. It is being skipped.
Nov 28 21:12:01 OpenWrt daemon.debug xinetd[7111]: Reading included configuration file: /etc/xinetd.d/gmailpop3stunnel [file=/etc/xinetd.conf] [line=6]
Nov 28 21:12:01 OpenWrt daemon.debug xinetd[7111]: Reading included configuration file: /etc/xinetd.d/gmailsmtpstunnel [file=/etc/xinetd.d/gmailsmtpstunnel] [line=31]
Nov 28 21:12:01 OpenWrt daemon.notice xinetd[7111]: xinetd Version 2.3.14 started with loadavg options compiled in.
Nov 28 21:12:01 OpenWrt daemon.notice xinetd[7111]: Started working: 2 available services

Ale to nie pomaga.

Oczywiście z kompa wszystko ładnie po sieci drukuje i skanuje. Firmware brothera najnowszy.

Może inny sposób?

Proszę o pomoc smile

TP-LINK TL-WR1043ND
OpenWrt Backfire 10.03.1-RC6 / LuCI 0.10 Branch (0.10+svn7852) uname -r > 2.6.32.27
+ hub 4xusb + pendrive > extroot + hdd2 320GB > samba, wget/aria2, rutorrent/transmission + usbrt73 > ap client + n6288 > gnokii 0.6.21 sendsms.
Do zrobienia: ownCloud, qos, kupić dobry aktywny hub 7xusb, lcd4linux, webcam, openvpn, multiwan/simplefailover, ups, porządki > cron, firewall, samba

2

Odp: tunnel gmail SSL

Takie coś robi się stunnelem, typu: stunnel -c -d 25 -r serwer:985.

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