gluon-layer3-common: add package
This commit is contained in:
		
							parent
							
								
									d78d521a40
								
							
						
					
					
						commit
						a554758192
					
				
							
								
								
									
										12
									
								
								package/gluon-layer3-common/Makefile
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										12
									
								
								package/gluon-layer3-common/Makefile
									
									
									
									
									
										Normal file
									
								
							@ -0,0 +1,12 @@
 | 
				
			|||||||
 | 
					include $(TOPDIR)/rules.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					PKG_NAME:=gluon-layer3-common
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					include ../gluon.mk
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					define Package/gluon-layer3-common
 | 
				
			||||||
 | 
					  TITLE:=Layer3 common files
 | 
				
			||||||
 | 
					  DEPENDS:=+gluon-core +gluon-mmfd +firewall
 | 
				
			||||||
 | 
					endef
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					$(eval $(call BuildPackageGluon,gluon-layer3-common))
 | 
				
			||||||
							
								
								
									
										25
									
								
								package/gluon-layer3-common/luasrc/lib/gluon/upgrade/310-layer3-firewall
									
									
									
									
									
										Executable file
									
								
							
							
						
						
									
										25
									
								
								package/gluon-layer3-common/luasrc/lib/gluon/upgrade/310-layer3-firewall
									
									
									
									
									
										Executable file
									
								
							@ -0,0 +1,25 @@
 | 
				
			|||||||
 | 
					#!/usr/bin/lua
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					local uci = require('simple-uci').cursor()
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci:section('firewall', 'forwarding', 'fcc', {
 | 
				
			||||||
 | 
						src = 'loc_client',
 | 
				
			||||||
 | 
						dest = 'loc_client',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci:section('firewall', 'forwarding', 'fcm', {
 | 
				
			||||||
 | 
						src = 'loc_client',
 | 
				
			||||||
 | 
						dest = 'mesh',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci:section('firewall', 'forwarding', 'fmc', {
 | 
				
			||||||
 | 
						src = 'mesh',
 | 
				
			||||||
 | 
						dest = 'loc_client',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci:section('firewall', 'forwarding', 'fmm', {
 | 
				
			||||||
 | 
						src = 'mesh',
 | 
				
			||||||
 | 
						dest = 'mesh',
 | 
				
			||||||
 | 
					})
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					uci:save('firewall')
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user