The gateway device is an important part of the construction of the Internet environment,the security of the gateway de-vice is also the key to ensure the security of the regional network,this paper firstly analyzes the current situation of the gateway securi-ty.Then,the paper focuses on the case that the partition is erased when the gateway device is attacked,and puts forward the corre-sponding improvement scheme.Finally,the scheme to improve gateway security is discussed,and the application of trusted computing environment in gateway equipment is briefly introduced.