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 ,
小欢互联成立于2019年10月,主打海外高性价比云服务器、CDN和虚拟主机服务。近期上线了自营美国CERA机房高速VPS,进行促销活动,为客户奉上美国/香港八折优惠码:Xxc1mtLB优惠码适用于美国CERA一区/二区以及香港一区/二区优惠时间:即日起至10月底优惠码可无限次使用,且续费同价!官网:https://idc.xh-ws.com购买地址:美国CERA一区:https://idc.xh-...
WordPress专业外贸企业网站搭建模版,特色专业外贸企业风格 + 自适应网站开发设计 通用流行的外贸企业网站模块 + 更好的SEO搜索优化和收录 自定义多模块的产品展示功能 + 高效实用的后台自定义模块设置!采用标准的HTML5+CSS3语言开发,兼容当下的各种主流浏览器: IE 6+(以及类似360、遨游等基于IE内核的)、Firefox、Google Chrome、Safari、Opera...
说明一下:gcorelabs的俄罗斯远东机房“伯力”既有“Virtual servers”也有“CLOUD SERVICES”,前者是VPS,后者是云服务器,不是一回事;由于平日大家习惯把VPS和云服务器当做一回事儿,所以这里要特别说明一下。本次测评的是gcorelabs的cloud,也就是云服务器。 官方网站:https://gcorelabs.com 支持:数字加密货币、信用卡、PayPal...