顯示文章

這裡允許您檢視這個會員的所有文章。請注意, 您只能看見您有權限閱讀的文章。


主題 - unetin

頁: 1 [2]
31
我想將所有的http traffic 用string過濾出 開 *.pdf的行為...然後drop
我試過
iptables -t mangle -A PREROUTING -m string --algo bm --string "GET *.pdf" -j DROP
下完後沒有作用....
但如果要block www.pchome.com.tw卻可以work
iptables -t mangle -A PREROUTING -m string --algo bm --string "www.pchome.com.tw" -j DROP

請問我哪裡錯了???

32
請問有人知道下面PPPoE撥接封包為什麼會出錯嗎?

09:08:21.489353 PPPoE  [ses 0xf65] LCP, Echo-Request (0x09), id 0, length 10
09:08:21.489615 PPPoE  [ses 0xf65] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:21.489828 PPPoE  [ses 0xf65] IPCP, Conf-Request (0x01), id 1, length 12
09:08:21.501589 PPPoE  [ses 0xf65] LCP, Term-Request (0x05), id 40, length 6
09:08:21.502295 PPPoE  [ses 0xf65] LCP, Term-Ack (0x06), id 40, length 6
09:08:21.514676 PPPoE PADT [ses 0xf65]
09:08:21.515179 PPPoE PADT [ses 0xf65] [Host-Uniq 0x154F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:21.648326 PPPoE PADI [Service-Name] [Host-Uniq 0x1E4F0000]
09:08:21.661105 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x1E4F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:21.661354 PPPoE PADR [Service-Name] [Host-Uniq 0x1E4F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:21.720905 PPPoE PADS [ses 0xf67] [Service-Name] [Host-Uniq 0x1E4F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:22.640773 PPPoE  [ses 0xf67] LCP, Conf-Request (0x01), id 1, length 16
09:08:22.674441 PPPoE  [ses 0xf67] LCP, Conf-Request (0x01), id 0, length 20
09:08:22.674455 PPPoE  [ses 0xf67] LCP, Conf-Ack (0x02), id 1, length 16
09:08:22.674880 PPPoE  [ses 0xf67] LCP, Conf-Reject (0x04), id 0, length 10
09:08:22.687651 PPPoE  [ses 0xf67] LCP, Conf-Request (0x01), id 1, length 16
09:08:22.688231 PPPoE  [ses 0xf67] LCP, Conf-Ack (0x02), id 1, length 16
09:08:22.688477 PPPoE  [ses 0xf67] LCP, Echo-Request (0x09), id 0, length 10
09:08:22.688679 PPPoE  [ses 0xf67] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:22.688845 PPPoE  [ses 0xf67] IPCP, Conf-Request (0x01), id 1, length 12
09:08:22.700898 PPPoE  [ses 0xf67] LCP, Term-Request (0x05), id 2, length 6
09:08:22.701573 PPPoE  [ses 0xf67] LCP, Term-Ack (0x06), id 2, length 6
09:08:22.714453 PPPoE PADT [ses 0xf67]
09:08:22.714940 PPPoE PADT [ses 0xf67] [Host-Uniq 0x1E4F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:22.848399 PPPoE PADI [Service-Name] [Host-Uniq 0x274F0000]
09:08:22.861389 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x274F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:22.861659 PPPoE PADR [Service-Name] [Host-Uniq 0x274F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:22.920445 PPPoE PADS [ses 0xf68] [Service-Name] [Host-Uniq 0x274F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:23.840844 PPPoE  [ses 0xf68] LCP, Conf-Request (0x01), id 1, length 16
09:08:23.873793 PPPoE  [ses 0xf68] LCP, Conf-Request (0x01), id 245, length 20
09:08:23.873806 PPPoE  [ses 0xf68] LCP, Conf-Ack (0x02), id 1, length 16
09:08:23.874232 PPPoE  [ses 0xf68] LCP, Conf-Reject (0x04), id 245, length 10
09:08:23.886453 PPPoE  [ses 0xf68] LCP, Conf-Request (0x01), id 246, length 16
09:08:23.887020 PPPoE  [ses 0xf68] LCP, Conf-Ack (0x02), id 246, length 16
09:08:23.887234 PPPoE  [ses 0xf68] LCP, Echo-Request (0x09), id 0, length 10
09:08:23.887421 PPPoE  [ses 0xf68] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:23.887568 PPPoE  [ses 0xf68] IPCP, Conf-Request (0x01), id 1, length 12
09:08:23.899700 PPPoE  [ses 0xf68] LCP, Term-Request (0x05), id 247, length 6
09:08:23.900441 PPPoE  [ses 0xf68] LCP, Term-Ack (0x06), id 247, length 6
09:08:23.912786 PPPoE PADT [ses 0xf68]
09:08:23.913276 PPPoE PADT [ses 0xf68] [Host-Uniq 0x274F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:24.052443 PPPoE PADI [Service-Name] [Host-Uniq 0x304F0000]
09:08:24.065215 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x304F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:24.065473 PPPoE PADR [Service-Name] [Host-Uniq 0x304F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:24.120494 PPPoE PADS [ses 0xf6c] [Service-Name] [Host-Uniq 0x304F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:25.033437 PPPoE  [ses 0xf6c] LCP, Conf-Request (0x01), id 1, length 16
09:08:25.073802 PPPoE  [ses 0xf6c] LCP, Conf-Request (0x01), id 108, length 20
09:08:25.073815 PPPoE  [ses 0xf6c] LCP, Conf-Ack (0x02), id 1, length 16
09:08:25.074253 PPPoE  [ses 0xf6c] LCP, Conf-Reject (0x04), id 108, length 10
09:08:25.086736 PPPoE  [ses 0xf6c] LCP, Conf-Request (0x01), id 109, length 16
09:08:25.087292 PPPoE  [ses 0xf6c] LCP, Conf-Ack (0x02), id 109, length 16
09:08:25.087507 PPPoE  [ses 0xf6c] LCP, Echo-Request (0x09), id 0, length 10
09:08:25.087693 PPPoE  [ses 0xf6c] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:25.087917 PPPoE  [ses 0xf6c] IPCP, Conf-Request (0x01), id 1, length 12
09:08:25.099750 PPPoE  [ses 0xf6c] LCP, Term-Request (0x05), id 110, length 6
09:08:25.100439 PPPoE  [ses 0xf6c] LCP, Term-Ack (0x06), id 110, length 6
09:08:25.112835 PPPoE PADT [ses 0xf6c]
09:08:25.113336 PPPoE PADT [ses 0xf6c] [Host-Uniq 0x304F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:25.240550 PPPoE PADI [Service-Name] [Host-Uniq 0x3A4F0000]
09:08:25.253734 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x3A4F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:25.253999 PPPoE PADR [Service-Name] [Host-Uniq 0x3A4F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:25.320544 PPPoE PADS [ses 0xf6d] [Service-Name] [Host-Uniq 0x3A4F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:25.877069 IP 0.0.0.0.bootpc > 255.255.255.255.bootps: BOOTP/DHCP, Request from 00:13:49:84:22:79, length: 300
09:08:26.233013 PPPoE  [ses 0xf6d] LCP, Conf-Request (0x01), id 1, length 16
09:08:26.273845 PPPoE  [ses 0xf6d] LCP, Conf-Request (0x01), id 160, length 20
09:08:26.273858 PPPoE  [ses 0xf6d] LCP, Conf-Ack (0x02), id 1, length 16
09:08:26.274291 PPPoE  [ses 0xf6d] LCP, Conf-Reject (0x04), id 160, length 10
09:08:26.285884 PPPoE  [ses 0xf6d] LCP, Conf-Request (0x01), id 161, length 16
09:08:26.286442 PPPoE  [ses 0xf6d] LCP, Conf-Ack (0x02), id 161, length 16
09:08:26.286656 PPPoE  [ses 0xf6d] LCP, Echo-Request (0x09), id 0, length 10
09:08:26.286936 PPPoE  [ses 0xf6d] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:26.287151 PPPoE  [ses 0xf6d] IPCP, Conf-Request (0x01), id 1, length 12
09:08:26.299022 PPPoE  [ses 0xf6d] LCP, Term-Request (0x05), id 162, length 6
09:08:26.299718 PPPoE  [ses 0xf6d] LCP, Term-Ack (0x06), id 162, length 6
09:08:26.312337 PPPoE PADT [ses 0xf6d]
09:08:26.312854 PPPoE PADT [ses 0xf6d] [Host-Uniq 0x3A4F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:26.440623 PPPoE PADI [Service-Name] [Host-Uniq 0x424F0000]
09:08:26.453783 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x424F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:26.454141 PPPoE PADR [Service-Name] [Host-Uniq 0x424F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:26.521143 PPPoE PADS [ses 0xf6e] [Service-Name] [Host-Uniq 0x424F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:27.429069 PPPoE  [ses 0xf6e] LCP, Conf-Request (0x01), id 1, length 16
09:08:27.475655 PPPoE  [ses 0xf6e] LCP, Conf-Request (0x01), id 251, length 20
09:08:27.475669 PPPoE  [ses 0xf6e] LCP, Conf-Ack (0x02), id 1, length 16
09:08:27.476116 PPPoE  [ses 0xf6e] LCP, Conf-Reject (0x04), id 251, length 10
09:08:27.488823 PPPoE  [ses 0xf6e] LCP, Conf-Request (0x01), id 252, length 16
09:08:27.489377 PPPoE  [ses 0xf6e] LCP, Conf-Ack (0x02), id 252, length 16
09:08:27.489590 PPPoE  [ses 0xf6e] LCP, Echo-Request (0x09), id 0, length 10
09:08:27.489777 PPPoE  [ses 0xf6e] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:27.489911 PPPoE  [ses 0xf6e] IPCP, Conf-Request (0x01), id 1, length 12
09:08:27.501839 PPPoE  [ses 0xf6e] LCP, Term-Request (0x05), id 253, length 6
09:08:27.502540 PPPoE  [ses 0xf6e] LCP, Term-Ack (0x06), id 253, length 6
09:08:27.514923 PPPoE PADT [ses 0xf6e]
09:08:27.515415 PPPoE PADT [ses 0xf6e] [Host-Uniq 0x424F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:27.648697 PPPoE PADI [Service-Name] [Host-Uniq 0x4B4F0000]
09:08:27.661351 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x4B4F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:27.661632 PPPoE PADR [Service-Name] [Host-Uniq 0x4B4F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:27.721149 PPPoE PADS [ses 0xf6f] [Service-Name] [Host-Uniq 0x4B4F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:28.637156 PPPoE  [ses 0xf6f] LCP, Conf-Request (0x01), id 1, length 16
09:08:28.675742 PPPoE  [ses 0xf6f] LCP, Conf-Request (0x01), id 24, length 20
09:08:28.675756 PPPoE  [ses 0xf6f] LCP, Conf-Ack (0x02), id 1, length 16
09:08:28.676181 PPPoE  [ses 0xf6f] LCP, Conf-Reject (0x04), id 24, length 10
09:08:28.688872 PPPoE  [ses 0xf6f] LCP, Conf-Request (0x01), id 25, length 16
09:08:28.689431 PPPoE  [ses 0xf6f] LCP, Conf-Ack (0x02), id 25, length 16
09:08:28.689646 PPPoE  [ses 0xf6f] LCP, Echo-Request (0x09), id 0, length 10
09:08:28.689833 PPPoE  [ses 0xf6f] unknown ctrl-proto (0x80fd), Conf-Request (0x01), id 1, length 15
09:08:28.689966 PPPoE  [ses 0xf6f] IPCP, Conf-Request (0x01), id 1, length 12
09:08:28.702121 PPPoE  [ses 0xf6f] LCP, Term-Request (0x05), id 26, length 6
09:08:28.702848 PPPoE  [ses 0xf6f] LCP, Term-Ack (0x06), id 26, length 6
09:08:28.715435 PPPoE PADT [ses 0xf6f]
09:08:28.715927 PPPoE PADT [ses 0xf6f] [Host-Uniq 0x4B4F0000] [Generic-Error "Received PADT from peer"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:28.856750 PPPoE PADI [Service-Name] [Host-Uniq 0x544F0000]
09:08:28.869154 PPPoE PADO [AC-Name "TP-BRAS-D54"] [Host-Uniq 0x544F0000] [Service-Name] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:28.869413 PPPoE PADR [Service-Name] [Host-Uniq 0x544F0000] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]
09:08:28.920463 PPPoE PADS [ses 0xf73] [Service-Name] [Host-Uniq 0x544F0000] [AC-Name "TP-BRAS-D54"] [AC-Cookie 0x98CC96F2D83832B7D83FF87370077609]

33
請問PPTP Server的arp proxy不work該怎麼辦? 這是PPTP server套件的Bug嗎?
我的eth3設了一個網段,192.168.3.0/24,192.168.3.254作為NAT PC的gateway...

2台PC各撥了PPTP後,彼此不能互ping...192.168.3.33<=>192.168.3.35...
pptpd[20511]: CTRL: Ignored a SET LINK INFO packet with real ACCMs!
pppd[20512]: MPPC/MPPE 128-bit stateful compression enabled
pppd[20512]: Cannot determine ethernet address for proxy ARP
pppd[20512]: local IP address x.x.x.x1
pppd[20512]: remote IP address 192.168.3.35

131: ppp2: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1400 qdisc pfifo_fast qlen 3
link/ppp
inet x.x.x.x peer 192.168.3.33/32 scope global ppp2
132: ppp3: <POINTOPOINT,MULTICAST,NOARP,UP,10000> mtu 1400 qdisc pfifo_fast qlen 3
link/ppp
inet x.x.x.x1 peer 192.168.3.35/32 scope global ppp3

[root@qb ~]# tcpdump -i eth3 -l -vn
tcpdump: listening on eth3, link-type EN10MB (Ethernet), capture size 96 bytes
13:40:31.899156 arp who-has 192.168.3.33 tell 192.168.3.254
13:40:32.399162 arp who-has 192.168.3.35 tell 192.168.3.254
13:40:33.399216 arp who-has 192.168.3.35 tell 192.168.3.254
13:40:34.399281 arp who-has 192.168.3.35 tell 192.168.3.254
13:40:35.403343 arp who-has 192.168.3.33 tell 192.168.3.254
13:40:36.403410 arp who-has 192.168.3.33 tell 192.168.3.254

我試了指令:
/usr/local/sbin/bcrelay -i ppp[0-9].* -o eth3 -n
或是
/usr/local/sbin/bcrelay -i eth3 -o ppp[0-9].* -n
都沒用...
還是需要下iptables指令?

34
Network 討論版 / PPPoE斷線重連的問題
« 於: 2007-05-28 14:44 »
大家好...
我在FC 5中跑rp-pppoe,測試斷線重連的功能,發現似乎重連沒幾次(我試過了,都是3次)就停了...
請問怎麼讓它斷線一值重連?
Log 如下:
May 28 14:17:09 pppd[1247]: Serial link appears to be disconnected.
May 28 14:17:15 pppd[1247]: Connection terminated.
May 28 14:17:26 pppd[1183]: Serial link appears to be disconnected.
May 28 14:17:32 pppd[1183]: Connection terminated.
May 28 14:17:46 pppd[1247]: Connect: ppp4 <--> /dev/pts/5
May 28 14:18:06 pppd[1183]: Connect: ppp3 <--> /dev/pts/6
May 28 14:18:17 pppd[1247]: LCP: timeout sending Config-Requests
May 28 14:18:17 pppd[1247]: Connection terminated.
May 28 14:18:17 pppd[1247]: Connect: ppp4 <--> /dev/pts/7
May 28 14:18:21 pppoe[2751]: Timeout waiting for PADO packets
May 28 14:18:37 pppd[1183]: LCP: timeout sending Config-Requests
May 28 14:18:37 pppd[1183]: Connection terminated.
May 28 14:18:37 pppd[1183]: Connect: ppp3 <--> /dev/pts/8
May 28 14:18:41 pppoe[2767]: Timeout waiting for PADO packets
May 28 14:18:48 pppd[1247]: LCP: timeout sending Config-Requests
May 28 14:18:48 pppd[1247]: Connection terminated.
May 28 14:18:48 pppd[1247]: tcflush failed: Bad file descriptor
May 28 14:18:48 pppd[1247]: Connect: ppp4 <--> /dev/pts/9
May 28 14:18:52 pppoe[2776]: Timeout waiting for PADO packets
May 28 14:19:08 pppd[1183]: LCP: timeout sending Config-Requests
May 28 14:19:08 pppd[1183]: Connection terminated.
May 28 14:19:08 pppd[1183]: tcflush failed: Bad file descriptor
May 28 14:19:08 pppd[1183]: Connect: ppp3 <--> /dev/pts/10
May 28 14:19:12 pppoe[2785]: Timeout waiting for PADO packets
May 28 14:19:12 pppoe[1256]: Inactivity timeout... something wicked happened on session 1357
May 28 14:19:19 pppd[1247]: LCP: timeout sending Config-Requests
May 28 14:19:23 pppoe[2793]: Timeout waiting for PADO packets
May 28 14:19:29 pppoe[1192]: Inactivity timeout... something wicked happened on session 1350
May 28 14:19:39 pppd[1183]: LCP: timeout sending Config-Requests
May 28 14:19:43 pppoe[2803]: Timeout waiting for PADO packets


Connect: ==>只要這時候將線路挿上去都會得到IP,但是幾次重連得不到IP之後挿上線路也不會再嘗試取的IP了...有人有遇過這種問題嗎?

35
大家好...
我想將原先用apache 1.3的web,搬到Fedora 5裡面,大部分都正常了.
但遇到一個問題,原先在apache 1.3裡面有一個安全機制的模組mod_eaccess ,在FC 5裡面已經找不到了.我在Google找半天都只找到for apache 1.3的版本...強copy到FC 5又沒辦法用...請問哪位學長可以指導一下?

Ps.那個模組的功能是防止沒經過首頁login就去存取其他頁面.

36
Network 討論版 / syslog daemon tool
« 於: 2007-04-30 16:16 »
大家好...
我有一台NAT server會將traffic送到我的PC,我的PC灌WinXP,所以我都用kiwi來收traffic Log.現在我不想用window的PC收,想用別一台fedora 5的server來收,請問有什麼好用的daemon可以介紹嗎?

37
請教如何在Perl的程式碼裡面呼叫javascript?

....
if ( Confirm(2, 'Confirm Deletion ?') == 1 ) goSubmit('ISP');
....
上面那個javascript的Confirm()會出現要人選Yes/No的視窗
我想在下面的一個perl主程式內直接用Confirm()並得知是Yes或No哪一個被選個該怎麼寫呢?

38
日前我將web server搬到Fedora 5
舊的環境是Debian Linux 2.4.21,Perl是5.6.0
我放到Fedora5後,Perl版本是5.8.8
因為搬過來除了首頁看的到之外,CGI都看不到,
所以我直接在linux下指令:perl index.cgi  結果是:
<html><head><link rel="stylesheet" href="gui.css" type="text/css"></head><body bgcolor="#003366" text="#ffffff" link="#000040" vlink="#400040"></body></html>    <script type="text/javascript" src="qb.js"></script>
    <script language="javascript">
        var ERROR_report="User Login Failed\n";
        var ISP_number=5;
        var LOGIN_result="0";
        window.onload=general_onload;
    </script>

我到舊環境下指令:perl index.cgi  結果是:什麼都沒有,compile正確吧
新環境似乎是perl看不懂JavaScript,請問我該額外掛什麼模組嗎?或是設定什麼??

頁: 1 [2]