First of all, let’s install QT4:
1 2 |
rpm -ivh http://software.freivald.com/centos/software.freivald.com-1.0.0-1.noarch.rpm yum update fontconfig fontconfig-devel qt4 qt4-devel qt4-doc qt4-postgresql qt4-odbc qt4-sqlite |
Now we look for packages with files of dependencies:
yum provides “*/libcrypto.so*” (or yum whatprovides */libcrypto.so*)
1 2 3 |
yum install rpm-build libxslt-devel autoconf automake libtool updatedb locate bin/qmake |
1 |
ln -s /usr/lib/qt4/bin/qmake /bin/qmake |
rpmbuild –rebuild ftp://fr2.rpmfind.net/linux/sourceforge/f/fw/fwbuilder/Current_Packages/5.0.1/fwbuilder-5.0.1.3592-1.el5.src.rpm
rpm -ivh /usr/src/redhat/RPMS/i386/fwbuilder-5.0.1.3592-1.i386.rpm
I haven’t X-system on my CentOS server & it was neccessary for me to use MS Windows desktop as X-server.
So further we install XMING on Windows and run it.
Command on CentOS-side:
1 |
export DISPLAY=192.168.0.99:0 |
Finally we launch fwbuilder:
NAT rule:
To import existing rules into FWBuilder:
You always can execute command service iptables save to save rules /etc/sysconfig/iptables
Don’t forget to mark one interface as “management interface”.
To debug, to find denied logged connections:
cat /var/log/messages | grep IP_ADDRESS_OR_SMTH
To pre up iptables rules on the destination PC:
1 |
/etc/init.d/iptables save |
It saves it into /etc/sysconfig/iptables file (which will be pre-up using iptables-restore on boot from /etc/init.d/iptables).
P.S. Please note to use IP-ranges in rules instead of adapter names.
igrad-v1.fwb | asterisk-v2.fwb | for_deb78.fwb
08.04.2016
14.04.2017