Environment Description: This machine has only one network card, use static IP Internet
Command: apt-get install shorewall ubuntu will automatically install it for you. , but the shorewall is not configured and does not start
"1" first cp /usr/share/doc/shorewall/examples/one-interface/* /etc/shorewall
"2" Modify /etc/shorewall/shorewall.conf Change STARTUP_ENABLED=No to STARTUP_ENABLED=Yes
"3" Modify /etc/default/shorewall Change startup=0 to startup=1
"4" run ifconfig to confirm that the default name of the network card is generally eth0, write down the name of the network card
"5" modify /etc/shorewall/interfaces change net eth0 detect dhcp, tcpflags , logmartians, eth0 in nosmurfs is your NIC name. If it is the same, you don't need to modify it.
"6" Modify /etc/shorewall/rules This file is the definition file of the access rule. The default is to allow local computer access. All external addresses, prohibit external computers from accessing this address, for example if you are open The ssh service, the port is 22, you want to allow others to access which one in ACCEPT $FW net icmp create a new rule
ACCEPT net $FW TCP 22 Here also give you a simple way to say some of the rules of the net net on behalf of the Internet The computer $fw stands for the machine, that is, the firewall itself interprets ACCEPT net $FW TCP 22 means to allow the Internet to the local machine (firewall) to access port 22 by TCP protocol. If prohibited, it is DROP
DROP net $FW TCP 22 If it is to allow Internet access to an IP, the rules can be written as such
ACCEPT net:192.168.1.10 $FW TCP 22
shorewall start Ok.
In Apple Mac OS and Microsoft Windows have supported multi-touch today, the Linux open source commun
lftp is an ftp client under Linux for logging in to a remote FTP server. Use its mirror command to b
1. Introduction to LVS1. Provide high availability and load balancing capabilities for application s
badblocks is the command or utility in linux like operating system which can scan or test our hard d
How to build Debian apt-get source on redhat
Several ways to export the Hash list of the domain controller on the intranet
20 Linux System Admin Interview Questions For Beginners – P
Introduction to the concept of TLB under Linux
Centos crack password and run level
Several security precautions for Linux systems
Memcache installation under Linux (with libevent installation) Tutorial
How to implement file sharing in VMWARE
How to view and modify file read and write permissions under Linux system
Practical recommendation: 12 Linux system recovery tools
How to deal with the monitor after WinXP starts?
How to remove the shield logo on the win7 Ultimate computer desktop icon?
Windows command mode is different. Usage
How to set up the win10 system taskbar automatically merge icon
Why Windows 8 prompts Rubik's Cube is not compatible
Windows 7 official version? What changes are most useful?
Solve Win7 disconnected connection failure
Win7 Ultimate appears black screen top left cursor blinking how to solve