[置頂]

書單: 安迪葛洛夫:Only paranoid survives.

Dec 4, 2005

[專案]SCTP 筆記

網址
http://www.siliconvalleyccie.com/linux-hn/ftp-server.htm 絕佳的vsftpd 教學
http://plog.longwin.com.tw/post/1/249 screen
http://apt.nc.hcc.edu.tw/web/student_server_FC3/student_server_FC3.htm FC3 安裝流程

* VSFTPD
在 cppsocket_programs 下
server 端 execute ./sctpmultiserver&
client execute ./sctpterminal
加上 address:port
例如 port 7 is echo server
port 13 is daytime server
port 19 is CharGen server

如果在server execute lib/programs/echo_server
and
client run ./terminal address:7
client will display red string!!!

Summary of active ports:
Port #7
Port #9
Port #13
Port #19

19-Nov-2005 13:00:52.6744: Accepted association from 192.168.0.4:28354 to Echo server.
19-Nov-2005 13:00:52.6814: Accepted association from 192.168.0.4:45236 to Discard server.
19-Nov-2005 13:00:52.6889: Accepted association from 192.168.0.4:23649 to Daytime server.


[root@server cppsocket_programs]# ./sctptftp
Usage: /root/api/cppsocket_programs/.libs/lt-sctptftp [Remote address] [get|put] [Filename] {-force-ipv4|-use-ipv6} {-local=address1} ... {-local=addressN}

./sctptftp 192.168.0.4 put xlog


port 19 should be CharGen server


Reference:

http://lksctp.sourceforge.net/index.html

http://www.sctp.be/sctpresearch.htm

http://polaris.cse.fau.edu/~sam/course/netp_htm/stevens_dir/sctp/

http://www.sctp.de/sctp-download.html


[root@client network-scripts]# cat ifcfg-eth0
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.0.255
HWADDR=00:00:1C:DD:93:5E
IPADDR=192.168.0.4
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes
TYPE=Ethernet
[root@client network-scripts]# cat ifcfg-eth0.bak
DEVICE=eth0
BOOTPROTO=static
BROADCAST=192.168.11.255
HWADDR=00:00:1C:DD:93:5E
IPADDR=192.168.11.1
NETMASK=255.255.255.0
NETWORK=192.168.11.0
ONBOOT=yes
TYPE=Ethernet
//////////////////////////////////////////////////
#
# reserved values
#
#255 local
#254 main
#253 default
#0 unspec
#
# local
#
#1 inr.ruhep

[root@client dnetc]# route -n
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth0
192.168.0.0 0.0.0.0 255.255.255.0 U 0 0 0 eth1
169.254.0.0 0.0.0.0 255.255.0.0 U 0 0 0 eth1
0.0.0.0 192.168.0.1 0.0.0.0 UG 0 0 0 eth0
[root@client dnetc]# ip route show
192.168.0.0/24 dev eth0 proto kernel scope link src 192.168.0.4
192.168.0.0/24 dev eth1 proto kernel scope link src 192.168.0.6
169.254.0.0/16 dev eth1 scope link
default via 192.168.0.1 dev eth0
[root@client dnetc]#



[root@client dnetc]# uname -r
2.6.11-1.1369_FC4
[root@client dnetc]# ls /usr/src
kernels redhat
[root@client dnetc]# ls /usr/src/kernels/
2.6.11-1.1369_FC4-i686
[root@client dnetc]# ls /usr/src/redhat/
BUILD RPMS SOURCES SPECS SRPMS
[root@client dnetc]#



[root@client dnetc]# cd /usr/src/kernels/2.6.11-1.1369_FC4-i686/
[root@client 2.6.11-1.1369_FC4-i686]# ls
arch fs ipc Makefile net sound
crypto include kernel mm scripts usr
drivers init lib Module.symvers security
[root@client 2.6.11-1.1369_FC4-i686]# ls ../../redhat/SOURCES/
[root@client 2.6.11-1.1369_FC4-i686]# ls ../../BUILD
ls: ../../BUILD: No such file or directory
[root@client 2.6.11-1.1369_FC4-i686]# ls ../../redhat/BUILD
[root@client 2.6.11-1.1369_FC4-i686]#

No comments: