One vro connects two Ethernet segments to the internet. The vro connects to the internet through serial port 0, while the Ethernet connects to the vro through ports E0 and E1 respectively. Suppose we want to allow any user to access the 198.78.46.12 server through an IP address, and allow users on the 205.131.175.0 network to browse through the Web
One router connects two Ethernet segments to the internet. The router connects to the internet through serial port 0, ethernet is connected to the router through ports E 0 and E 1 respectively. Suppose We want to allow any user to access the 1 98.78.46.12 server through I p and allow users on the 2 0 5.131.175.0 network to browse through We B
One router connects two Ethernet segments to the internet. The router connects to the internet through serial port 0, ethernet is connected to the router through ports E 0 and E 1 respectively. Suppose We want to allow any user to access the 1 98.78.46.12 server through I p, and allow users on the 2 0 5.131.175.0 network to browse through We B (h t p) and f t p access I n t e r n e t.
Useranme test password cisco
!
Int serial 0
Ip add 175.10.1.1 255.255.255.0
Ip access-group 100 in
!
Access-list 100 permit tcp any host 175.10.1.1 eq telnet
Access-list 100 permit udp any eq 53 205.131.175.0 0.0.255 gt 1023
Established
Access-list 100 permit tcp any eq 21 205.131.175.0 0.0.255 gt 1023
Established
Access-list 100 permit tcp any eq 20 205.131.175.0 0.0.255 gt 1023
Access-list 100 dynamic test timeout 180 permit ip any host 198.76.46.12 log
!
Logging buffered 64000
!
Line vty 0 2
Login local
Autocommand access-enable host timeout 10
Line vty 3 4
Login local
Rotary 1
First, we noticed that the access table was applied to the serial port. Apply the extended access table to
This is a good method. In this example, the objective is to filter hosts on I n t e r n t, so the serial port is the port closest to the filtered host on the router. The direction of the Access Table application is inwards, because from the router's point of view, the packets from I n t e r n e t flow to the router. If we apply the access table to external access, the filtered packet will be the packet that leaves the serial interface and leads to the I n t e r n e t, this is not what we want. In addition, we have created
OneUser name "t e s t", which can be accessed
Ask the router. In practice, we should create a user name and password for each user. Now, let's analyze each
OneTable item.
The
OneTable items allow messages from any source I P address to reach HOST 1 7 5. 1 0. 1. 1. If the target port is t e l n e t (2 3. In this way, we actually allow the inner t e l n t to connect to the router's serial interface. We can allow inner t e l n e t to connect to other I P addresses of the router, but only allow inner access to the serial interface of the router is the best choice.
The second table item allows packets from any source I P address. If the source port is a domain Name System (domain namesystem, DNS) (UDP 53), and the target network is located at 2 0 5. 1 3 1. 1 7 5. 0/2 4,
If the destination port is greater than 1 0 2 3. This will allow the d n s response to reach 2 0 5. 1 3 1 1 7 5. 0/24 network. The source port for all valid d n s requests should be 1 0 2 4 or larger, so the valid d n s response should be sent to this 1 0 2 4 or higher port. If we do not specify a destination port greater than 1 0 2 3, attackers can send u d p packets to our network from source port 5 3, this results in denial-of-service (DOS) attacks on internal servers. A large number of server ports are in a reserved range smaller than 1 0 2 4, so we should block packets whose destination port is smaller than 1 0 2 4 to disable potential security vulnerabilities.
Table 3 and table 4 allow incoming packets with the following characteristics: the source port is W (TCP 80) or f t p (TCP 21), and the destination is 2 0 5. 1 3 1. 1 7 5. 0/2 4 network, the target port is greater than 1 0 2 3, and a c k and r s t bits are set in the t c p header. The two table items allow the ww and f t p queries initiated by the internal host
The return packet. The reason for specifying the source port and destination port is the same as that in the second table. Using e s t a B l I s h e d means that only the response bit (A C K) and reset bit (R S T) are set) can match and allow access to table items. Only those packets with t c p sessions are set. This increases the security level of the access table. It is worth noting that attackers can easily manually set these bits in the inner message, so this detection is very simple. However, if the internal network uses the correct t c p/I P protocol stack, these inner packets with A C K and R S T are ignored, because they are not part of a valid t c p Session on the host, this is why the e s t a B l s h e d keyword is still very important. Note that this
It is useless for u d p packets, which is why this keyword is not found in the second access table.
The fifth table allows any host inwards whose source port is 2 0 to reach the Network 2 0 5. 1 3 1. 1 7 5. if the destination port of 0/2 4 is greater than 1 0 2 3, packets of f t p Data initiated by the internal host are allowed to connect to the internal host. The implementation of the f t p protocol requires the f t p server to send back
OneConnect to the source f t p client. The initial packet of the connection is not set with a c k or r s t bit. Therefore, the esta B l I s h e d keyword cannot be used in table items. There is a version of f t p called passive mode f t p, or pa s c, which does not need to be initiated by the server.
OneConnection to the source f t p client. In this mode, the client needs to initiate to another FTP server that does not have Port 2 0
OneConnection. This port is a random choice that is greater than 1 0 2 3. We allow all packets over the 1023 TCP port to pass, because we cannot further determine what the f t p server will choose
OnePort (the data port of the passive mode f t p server is not 2 0, which is different from the normal mode f t p ). Although we cannot make this table item as accurate as we want, the established keyword still makes this table item safer than allowing external users to initiate a session to the internal network.
The sixth table item (also the last
OneTable item) is
DynamicAccess Table entry, which allows packets from the authenticated host to reach Server 1 9 8. 7 8. 4 6. 1 2. The absolute timeout time we define is 3 hours (1 8 0 minutes), and logs are logged for this table item (we have also enabled the log for the vro buffer ). By
DynamicTable items are recorded. We can track user behaviors and establish
OneA normal baseline. In this way, we can discover abnormal behaviors and determine whether this is caused by attackers. We will also
DynamicThe idle time for accessing table items is set to 1 0 minutes, which is set through a u t o c o m a n d in the v t y line configuration.
It is best to set these two values so that we can reduce them.
DynamicTable item active time, thus reducing the number of attackers
DynamicThe possibility of table items.
Idle Timer
OneMessage matching
DynamicReset when accessing table items. The absolute timer is not reset, even if
OneThe session is still active. If the absolute timeout reaches,
DynamicThe table item will be deleted, and the user needs to go through
OneAuthentication process. If they have active sessions that pass through the vro, these sessions will be terminated. For this reason, we recommend that you set the absolute timeout to a relatively large value, generally
OneHours or longer. However, we should set the idle time to a smaller value, generally 1 0 minute or shorter. In our opinion, we should not set the idle time to more than 3 0 minutes.