Set up this server, so that intranet users through the server and external communication; The basic principle for intranet users through the FreeBSD Gateway routing function (route) and external network communication, server security and virus protection control through the FreeBSD IPFilter to complete. The initial erection process is as follows:
Network Card Interface Description:
vr0
: External network network card interface
FreeBSD + gateway + Ipfilter configuration-Linux Enterprise Application-Linux server application information. For more information, see the following. Recently, the FreeBSD6.0 Gateway (with fire prevention) is configured. The configuration file is posted below:
Dual-nic rl0 rl1
Rl0: used for ADSL dialing; rl1 is used for Intranet networks; Address: 192.168.1.1
CODE: [linyin @ linyin ~] $ More/etc/rc. conf# -- Sysinstall generated delt
the potential threats from outside, without too much restriction on the users in the lab. A few weeks ago, I installed my first ipfilter firewall and set up NAT and other things, which took only a few hours. Although I know very well that the UNIX community in the Netherlands is a fanatical supporter of Linux, I think FreeBSD plus ipfilter (or OpenBSD plus packetfileter) is easier to configure than a Linux
System.Web.UI.WebControls.WebParts;Using System.Web.UI.HtmlControls;Using System.Text;Using System.Text.RegularExpressions;Using Microsoft.VisualBasic;Regexinfo structure for storing data read from an XML filepublic struct Regexinfo{public string _before;public string _after;Public Regexinfo (string before, string after){_before = before. ToLower ();_after = after. ToLower ();}}IPFilter structure, used to store the blocked IPpublic struct
support the PPTP and other regions. Root Login Clive in a BBSArticleTo achieve this effect, you must install the VPN and Nat instances at the same time. Therefore, I chose the combination of MPD and ipfilter: The Tunneling in the MPD environment, ipfilter refers to Nat in it. The entire architecture is shown in the following figure:
MPD can be used by FreeBSD'sPorts/NET/MPDYou can refer to any of the
Bkjia.com exclusive Article] for server systems connected to the Internet, make it clear that the network is not secure. Therefore, although creating a firewall does not guarantee 100% system security, it is absolutely necessary. BKJIA Wang Wenwen: at the end of last year, Oracle said it would increase investment in OpenSolaris, I don't know if they do not count, but we haven't seen the new version of Opensolaris. Even if they do not count, the powerful functions of Solaris and Opensolaris and t
technical Articles-★ programming introduction ★ NET]
We use the Wspconnect function to implement the access control function. When a user requests an HTTP service, it is necessary to establish a connection to the target site first, and then send the HTTP request packet based on the connection after the connection succeeds. When a user application invokes the Connect or WSAConnect function to establish a connection, the SPI invokes the corresponding Wspconnect function: INT wspapi wspconnect (.
IPF #vi IPFInsert the following contentOptions IPFILTER Options Ipfilter_log Edit/etc/rc.conf #vi/E Tc/rc.confJoinIpfilter_enable= "yes" #打开ipfilter ipfilter_rules= "/etc/ipf.rules" #ipfilter规则文件绝对路径 gateway_enable= "yes" #作为网关使用Ipnat_enable= "YES" #nat转发打开 ipnat_rules= "/etc/ipnat.rules" #nat the absolute path of the rule file and then recompile, install the ke
WSPConnect function to implement the access control function. When you request an HTTP service, you must first establish a connection with the target site. After the connection is successful, an HTTP request packet is sent based on the connection. When your application calls the connect or WSAConnect function to establish a connection, SPI calls the corresponding WSPConnect function: int wspapi WSPConnect (..., const struct sockaddr FAR * name ,..., int far * lpErrno ). The sockaddr parameter n
VPN on OpenBSD configuration note
VPN (vitual Private Network) has been widely used in recent years.I will not go into details if I already have many special statements. This document only configures the OpenBSD system on a PC.The VPN is a brief description. It also states that all operations are based on your own configuration experience and are implemented on your own.There may be slight differences in the process. I believe that readers with certain OpenBSD operation experience are compet
address is incorrect. Property: True/false* Net. bind_ip: specify a NIC address to access the set attribute: IP Address* Net. outgoing_ip: specify a NIC address to transmit the setting property: IP Address* Net. low_cpu: a small amount of CPU usage is reduced (if the download speed is satisfactory, we recommend that you disable it). Set the attribute to true/false.* Net. max_halfopen: Number of connections to half-open TCP connection. The default value of WINXP incl SP2 that is not cracked is 8
Address Translation (NAT) functions provided by the Solaris IP Filter package, and the configuration information can be provided using the corresponding configuration file. The Solaris IP Filter configuration files are stored in the/etc/ipf directory, including ipf. conf, ipf. nat, and ippool. conf files. These files are automatically read during system boot as long as they are stored in the/etc/ipf directory. The Solaris IP Filter packet filtering feature allows you to easily Set firewall func
query speed ##### 2018/7/121 is optimized. New IPFilter Module Introduction: The module in a large-scale service on the tip of the use, at the same time after years of testing and revision accumulation, logic clear simple, but the stability is very good. Because this site is the nature of the individual sites, in the overall framework does not make changes in the case of targeted changes to the algorithm rules, the module is transplanted to this site
use filters .Because of the need for IP statistics, you can create a map in the filter, using the IP key, the number of accesses is value. When there is a user access, obtain the requested IP, if the IP exists in the map, indicating the previous access, then add 1 to the number of visits, the IP in the map does not exist, then set the number of 1.store this map in ServletContext! 3 Codeindex.jsp
"center" width="50%" border="1">"entry">[Cui 1]
be called by subsequent filter.
Init (Filterconfig fconfig). The filter apprenticeship method that is called by the container.
Destroy ().
Here's an example:@WebFilter (filtername= "/ipfilter", urlpatterns={"/*"}) public class IPFilter implements Filter {private filterconfig Fconfig = Null;public void Destroy () {this.fconfig = null;} public void DoFilter (ServletRequest request, servletrespo
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.