15 1 ( ) Vol. 15 No. 1
2007 2 Journalof Anhui Instituteof Architecture & Industry Feb. 2007
Linux
: ;Linux;Q T designer ; shell
:TP393 08 :A :1006 4540(2007)01 062 03
Q IAN Chao Yang1 , XU Ying hu2 , XI Fang lang3
(1 College of Computer and Information Science ,Hefei University of Technology, Hefei 230009 ;2 Hospital of Chaohu, Chaohu 238000;3 Chinese Medicine Hospital of Susong County, Susong 246501)how to construct a firewall with graphical interface for users in Linux OS int roduced in thepaper how and how to make a grap hicai interface wit h Q T designer was int roduced emp haticallg. wewilla example to explain in the end.firewall Linux;Q T designer GU I
Linux , (3) windows xp
Linux [ 1 ] , IP 1
(1) red hat linux9. 0 1
( ) ; 2
(2) windows 2000 server
:2006 10 11
: (1962- ) , , , ,
7 , : Linux 63
Iptables (Linux2. 4 Ipchains) :s h e ll : IPs h e ll ,
: IP
2.2 QTdesigner
2 QT designer
Q T designer , C++ ,:New File/Project - >C+ + Project ,
, ,firewall C++ , ,
F
, , .
, 3 2. 5
Delp hi (1)s h e ll ,
, shell
,
64 ( ) 15
?reset shell (5)Signal Slot
2 , : INET QT Signal Slot ,_IP= 1 ,LA N_IP= 2 ,
QT , :
2 2 ,
, ( firewall.pro ):
, s h e ll
(2) Make
QString: :arg()
reset=tr(( sh reset
IP) .a r g(LA N_I P)) ; ,
(3) , ,
Qstring reset=t r ( ( shreset . sh%1%2) .arg(IN ET_IP) .arg(LAN_IP)) ;
chmod +Xreset . sh 2 Xt
[M] : ,2002
(4) 3 , , , [M]
, s h e ll : ,2004sysytem() 4 , , ,system() [M] :
QT ,2006shell ,
一、麻花云官网点击直达麻花云官方网站二、活动方案优惠码:专属优惠码:F1B07B 享受85折优惠。点击访问活动链接最新活动 :五一狂欢 惠战到底 香港云主机 1.9折起香港特价体验云主机CN2 云服务器最新上线KVM架构,,默认40G SSD,+10G自带一个IPv4,免费10Gbps防御,CPU内存带宽价格购买1核1G1M19元首月链接2核2G 2M92元/3个月链接2核4G3M112元/3个月...
Sharktech荷兰10G带宽的独立服务器月付319美元起,10Gbps共享带宽,不限制流量,自带5个IPv4,免费60Gbps的 DDoS防御,可加到100G防御。CPU内存HDD价格购买地址E3-1270v216G2T$319/月链接E3-1270v516G2T$329/月链接2*E5-2670v232G2T$389/月链接2*E5-2678v364G2T$409/月链接这里我们需要注意,默...
hostkvm本月对香港国际线路的VPS、韩国CN2+bgp线路的VPS正在做7折终身优惠,对日本软银线路、美国CN2 GIA线路、新加坡直连线路的VPS进行8折终身优惠促销。所有VPS从4G内存开始支持Windows系统,当然主流Linux发行版是绝对不会缺席的!官方网站:https://hostkvm.com香港国际线路、韩国,7折优惠码:2021summer日本、美国、新加坡,8折优惠码:2...