Vpn over TCP or UDP

A VPN is for wrapping raw IP packets into some kind of “tunnel” between two sites.

– Connection speed  is  going slow down  cause of  Encryption.

Performance :    UDP is better

Security        :   For  Experts  ,  it is  The same .   UDP is also secure, because  VPN service  adding  EXTRA header  inside of  UDP

Connectionless  >  TCP is a protocol which sits on top of IP,   (which are “unreliable“: Packet  lost, duplicated, reordered)

 

to provide a reliable two-directional channel for data bytes, where bytes always reach the receiver in the order they were sent. TCP does that by using a complex assortment of metadata with explicit acknowledges and reemissions. Thus, TCP incurs a slight network overhead.

If VPN uses TCP,  it is paying the TCP overhead twice. An UDP-based VPN thus has the potential for slightly better performance. On the other hand, the cryptographic protection of the VPN requires some state management, which may be harder for the VPN implementation when using UDP, hence it is possible that the UDP-based VPN has an extra overhead to contend with.

Performance  is tested by me, and  UDP connection performance obviously better than TCP.

 

combine string variables on bash. concatenate string bash

 

 

Ftp ACL (Access Control Lists ) – restricted FTP access

What is ACL ?

When you enable it , only selected ips  have access to  FTP server as a client.  it is for security of FTP. if some one stole  your FTP.

 

How to ?  It is depends on your FTP  provider. But if you have  own linux server.

access-list 101 permit tcp any any eq 21  
!--- The above line permits TCP traffic from any source, such as the FTP client,
      
!--- FTP server destination at the FTP control port 21. 

access-list 101 permit tcp any eq 20 any
!--- The above line permits TCP traffic from any source, such as the FTP server,
    
!--- FTP client at FTP data port 20.

 

Example Document :

HP_ACCESS_CONTROL_Ch3_ACL

 

Posted in FTP

Using tar command

 

 

using tar command for     Partition backup