ผู้เขียน หัวข้อ: set outlook ผ่าน net ที่มี proxy linux  (อ่าน 13422 ครั้ง)

0 สมาชิก และ 1 บุคคลทั่วไป กำลังดูหัวข้อนี้

ออฟไลน์ sudjai

  • Full Member
  • ***
  • กระทู้: 152
  • teamwork
  • Respect: 0
    • ดูรายละเอียด
    • http://pochaihospital.org
set outlook ผ่าน net ที่มี proxy linux
« เมื่อ: กันยายน 12, 2008, 08:35:22 AM »
0
ช่วยแนะนำวิธี set outlook ผ่าน net  proxy linux (squid) ด้วยครับ (MailBox ของ สกส ครับ)
MRS11  Phochai Hospital  Roi-Et
Tel.0819649149 , 043567231-2 ต่อ 105
E-Mail: sudjaisee@gmail.com
Admin จำเป็นคราบๆๆๆๆ

doramon

  • บุคคลทั่วไป
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #1 เมื่อ: กันยายน 12, 2008, 11:57:15 AM »
0
ต้องไปเปิด

squid.conf

ให้เวป  ???.chi.or.th  ออกได้ตรงเลยไม่ต้องผ่าน proxy ครับ


ผมจำ mail มันไม่ได้ครับ


ออฟไลน์ sothorn

  • Jr. Member
  • **
  • กระทู้: 66
  • Respect: 0
    • ดูรายละเอียด
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #2 เมื่อ: กันยายน 12, 2008, 12:07:32 PM »
0
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443         # https
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl Safe_ports port 631         # cups
acl Safe_ports port 873         # rsync
acl Safe_ports port 901         # SWAT

ใน Config ของ Squid ไม่ได้เปิด port 25 (SMTP)  และ 110 (imap) เอา ไว้ให้
เราต้องเพิ่ม
acl Safe_ports port 25          # SMPT
acl Safe_ports port 110       # imap

เข้าไปดูนะครับ   แล้ว reatart squid  อีกทีน่าจะได้แล้วครับ

doramon

  • บุคคลทั่วไป
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #3 เมื่อ: กันยายน 12, 2008, 12:19:04 PM »
0
 ;D 

ขอบคุณครับ พี่


มาถึงบ้านก็มีคนตอบแทนแล้ว

doramon

  • บุคคลทั่วไป
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #4 เมื่อ: กันยายน 12, 2008, 12:23:40 PM »
0
ขอบคุณครับ

แต่แบบนั้นมันจะทำให้ ใช้ mail  อื่นได้ด้วยครับ

แต่ว่า รพ อาจจะไม่อยากให้ใช้

 ;D

ออฟไลน์ sudjai

  • Full Member
  • ***
  • กระทู้: 152
  • teamwork
  • Respect: 0
    • ดูรายละเอียด
    • http://pochaihospital.org
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #5 เมื่อ: กันยายน 12, 2008, 15:53:51 PM »
0
ขอบคุณมาก ๆ ครับ ทุก ๆ ท่าน กำลังทดสอบครับได้ผลไงจะแจ้งให้ทราบครับพี่น้อง
MRS11  Phochai Hospital  Roi-Et
Tel.0819649149 , 043567231-2 ต่อ 105
E-Mail: sudjaisee@gmail.com
Admin จำเป็นคราบๆๆๆๆ

ออฟไลน์ udomchok

  • Hero Member
  • *****
  • กระทู้: 8,349
  • Respect: +589
    • ดูรายละเอียด
    • ร.พ.สมเด็จพระสังฆราช องค์ที่ 17
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #6 เมื่อ: กันยายน 13, 2008, 00:06:18 AM »
0
แต่แบบนั้นมันจะทำให้ ใช้ mail  อื่นได้ด้วยครับ
แต่ว่า รพ อาจจะไม่อยากให้ใช้

 >:( >:( >:( >:(
แหม...อ.อ๊อด ใจร้ายจัง  mail อื่น ๆ ก็ไม่ให้ใช้เหรอ
ทำด้วยหัวใจร.พ.สมเด็จพระสังฆราช องค์ที่ 17 อ.สองพี่น้อง จ.สุพรรณบุรี
อบรมโดย BMS Team เมื่อ พ.ย. 49 ขึ้นระบบห้องบัตรเมื่อ X'Mas 2007
2008 : X-Ray กายภาพบำบัด แพทย์แผนไทย กิจกรรมบำบัด OPD ตา
2009 : ทันตกรรม ห้องตรวจตา OPD (พยาบาลและห้องตรวจแพทย์บางห้อง)

ออฟไลน์ sudjai

  • Full Member
  • ***
  • กระทู้: 152
  • teamwork
  • Respect: 0
    • ดูรายละเอียด
    • http://pochaihospital.org
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #7 เมื่อ: กันยายน 15, 2008, 10:47:29 AM »
0
ผม set ตามนี้ แล้วก็ยังออกไม่ได้ครับ ต้องแก้ไขอะไรเปล่าครับ

#Recommended minimum configuration:
acl all src 0.0.0.0/0.0.0.0
acl manager proto cache_object
acl localhost src 127.0.0.1/255.255.255.255
acl to_localhost dst 127.0.0.0/8
acl SSL_ports port 443 563
acl Safe_ports port 80          # http
acl Safe_ports port 21          # ftp
acl Safe_ports port 443 563     # https, snews
acl Safe_ports port 70          # gopher
acl Safe_ports port 210         # wais
acl Safe_ports port 1025-65535  # unregistered ports
acl Safe_ports port 280         # http-mgmt
acl Safe_ports port 488         # gss-http
acl Safe_ports port 591         # filemaker
acl Safe_ports port 777         # multiling http
acl Safe_ports port 25          # SMPT
acl Safe_ports port 110         # imap
acl CONNECT method CONNECT

#  TAG: http_access
#       Allowing or Denying access based on defined access lists
#
#       Access to the HTTP port:
#       http_access allow|deny [!]aclname ...
#
#       NOTE on default values:
#
#       If there are no "access" lines present, the default is to deny
#       the request.
#
#       If none of the "access" lines cause a match, the default is the
#       opposite of the last line in the list.  If the last line was
#       deny, the default is allow.  Conversely, if the last line
#       is allow, the default will be deny.  For these reasons, it is a
#       good idea to have an "deny all" or "allow all" entry at the end
#       of your access lists to avoid potential confusion.
#
#Default:
# http_access deny all
#
[root@hpsever2 ~]# service squid restart
Stopping squid: ................[  OK  ]
Starting squid: .[  OK  ]
[root@hpsever2 ~]#
MRS11  Phochai Hospital  Roi-Et
Tel.0819649149 , 043567231-2 ต่อ 105
E-Mail: sudjaisee@gmail.com
Admin จำเป็นคราบๆๆๆๆ

ออฟไลน์ sudjai

  • Full Member
  • ***
  • กระทู้: 152
  • teamwork
  • Respect: 0
    • ดูรายละเอียด
    • http://pochaihospital.org
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #8 เมื่อ: กันยายน 17, 2008, 09:47:14 AM »
0
ช่วยทีครับ จะเพิ่ม web

ucdata1.chi.or.th

ใน squid.conf อย่างไร และบรรทัดไหนครับ
MRS11  Phochai Hospital  Roi-Et
Tel.0819649149 , 043567231-2 ต่อ 105
E-Mail: sudjaisee@gmail.com
Admin จำเป็นคราบๆๆๆๆ

ออฟไลน์ เข้ม

  • Hero Member
  • *****
  • กระทู้: 2,805
  • Respect: +4
    • ดูรายละเอียด
    • phichit hospital
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #9 เมื่อ: กันยายน 17, 2008, 12:30:48 PM »
0
ผมเดาว่า คงใช้ไม่กี่เครื่องนะครับ
ผมให้เครื่องที่จะออกไป สกส. ใส่ DNS ครับ
Phichit Hospital
HOSxP 3.61.10.31 on FreeBSD 9.2
By BMS - Dec 26, 2007

ออฟไลน์ sudjai

  • Full Member
  • ***
  • กระทู้: 152
  • teamwork
  • Respect: 0
    • ดูรายละเอียด
    • http://pochaihospital.org
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #10 เมื่อ: กันยายน 17, 2008, 13:04:59 PM »
0
ใส่อย่างไร ครับช่วยแนะนำด้วย ผมใช้ 4 เครื่องนะครับ
MRS11  Phochai Hospital  Roi-Et
Tel.0819649149 , 043567231-2 ต่อ 105
E-Mail: sudjaisee@gmail.com
Admin จำเป็นคราบๆๆๆๆ

ออฟไลน์ saxmaxx

  • Full Member
  • ***
  • กระทู้: 183
  • Respect: +2
    • ดูรายละเอียด
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #11 เมื่อ: สิงหาคม 06, 2009, 10:05:40 AM »
0
ประการที่ 1
ต้องทำการเปิดการ forward ของ linux ก่อนครับ
echo 1 > /proc/sys/net/ipv4/ip_forward
หรือจะไปตั้งไว้ใน /etc/sysctl.conf ก็ได้ครับ
net.ipv4.ip_forward = 1 แนะนำให้ใช้วิธีหลังครับ


ประการที่ 2
ตั้ง rule ของ iptables
iptables -F (ถ้ายังไม่ได้ตั้งกฎอะไรไว้นะครับ)
iptables -t nat -A POSTROUTING -s 192.168.1.0/255.255.255.0 -o eth1 -j MASQUERADE
iptables -A FORWARD -s 192.168.1.0/255.255.255.0 -j ACCEPT
/etc/init.d/iptables save
/etc/init.d/iptables restart

ทำสองอย่างก็ผ่านแล้วครับ
ที่มา: http://www.thaiadmin.org/board/index.php?topic=58042.0
อนิจจัง ทุกขัง อนัตตา.....



pongrawe  traisarsri  กอล์ฟ 
รพช. บางไทร  จ.พระนครศรีอยุธยา
Master : DELL R440 Ram 64GB
 ขึ้นเต็มระบบ 13 มี.ค.63
HOSXE

ออฟไลน์ saxmaxx

  • Full Member
  • ***
  • กระทู้: 183
  • Respect: +2
    • ดูรายละเอียด
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #12 เมื่อ: สิงหาคม 06, 2009, 11:52:46 AM »
0
ทำตามลิ๊งยังบ่ได้ครับ เหอะๆ ทำไงดี ขอความกรุณาท่านผู้รู้
อนิจจัง ทุกขัง อนัตตา.....



pongrawe  traisarsri  กอล์ฟ 
รพช. บางไทร  จ.พระนครศรีอยุธยา
Master : DELL R440 Ram 64GB
 ขึ้นเต็มระบบ 13 มี.ค.63
HOSXE

ออฟไลน์ saxmaxx

  • Full Member
  • ***
  • กระทู้: 183
  • Respect: +2
    • ดูรายละเอียด
Re: set outlook ผ่าน net ที่มี proxy linux
« ตอบกลับ #13 เมื่อ: สิงหาคม 06, 2009, 16:44:10 PM »
0
 ผมทำตามนี้แล้วได้ครับ
# iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE
# service iptables save
# service iptables restart
# echo 1 > /proc/sys/net/ipv4/ip_forward
# iptables-save -c > /etc/iptables-save
*** # คือเครื่องหมายระบุบรรทัด

แต่น่าจะเปิด port 25 กับ 110 ตามตัวอย่างของคุณ sothorn ก่อนนะครับ
eth0 ของเครื่องที่ผมใช้คือแลนตัวที่ชี้ไป router (ออกเน็ต) ครับ ลองดูนะครับ
อนิจจัง ทุกขัง อนัตตา.....



pongrawe  traisarsri  กอล์ฟ 
รพช. บางไทร  จ.พระนครศรีอยุธยา
Master : DELL R440 Ram 64GB
 ขึ้นเต็มระบบ 13 มี.ค.63
HOSXE