A More Secure Internet Connection for Your Home https://fen.gg
Вы не можете выбрать более 25 тем Темы должны начинаться с буквы или цифры, могут содержать дефисы(-) и должны содержать не более 35 символов.
 
 
 
 
 
 
zauberstuhl 0bc30a877b Initial wifi integration (#7) 9 месяцев назад
.agola Fix typo in agola config 10 месяцев назад
.gitea/images Initial commit 1 год назад
build Initial commit 1 год назад
config Initial wifi integration (#7) 9 месяцев назад
db/migrations Initial wifi integration (#7) 9 месяцев назад
handler Initial wifi integration (#7) 9 месяцев назад
helper Initial wifi integration (#7) 9 месяцев назад
model Initial wifi integration (#7) 9 месяцев назад
netfilter Remove obsolete benchmark tests 10 месяцев назад
src Initial wifi integration (#7) 9 месяцев назад
static Initial commit 1 год назад
types Initial wifi integration (#7) 9 месяцев назад
utils Restructure the application folder modules 11 месяцев назад
worker Initial wifi integration (#7) 9 месяцев назад
.babelrc Initial commit 1 год назад
.editorconfig Initial commit 1 год назад
.eslintignore Initial commit 1 год назад
.eslintrc.js Initial commit 1 год назад
.gitignore Initial commit 1 год назад
.postcssrc.js Initial commit 1 год назад
LICENSE Initial commit 1 год назад
README.md Merge database migration files 11 месяцев назад
go.mod Initial wifi integration (#7) 9 месяцев назад
go.sum Initial wifi integration (#7) 9 месяцев назад
index.html Initial commit 1 год назад
init.go Initial wifi integration (#7) 9 месяцев назад
log.go Initial wifi integration (#7) 9 месяцев назад
package.json Restructure the application folder modules 11 месяцев назад
server.go Initial wifi integration (#7) 9 месяцев назад
workers.go Initial wifi integration (#7) 9 месяцев назад
yarn.lock Restructure the application folder modules 11 месяцев назад

README.md

Fengg

A More Secure Internet Connection for Your Home A Malicious Traffic Detection System For Small Hardware

https://tea.fen.gg/fengg/server/raw/branch/master/.gitea/images/webinterface.png

Checkout fen.gg/crowdfunding and support us with a small donation.

Development

Compile assets and go binary

# build go binary
VERSION=$(git rev-parse --short HEAD) && \
  go build -o fengg -ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"

# set linux capabilities
sudo setcap 'cap_net_admin=+ep' fengg

# compile assets
yarn install
# use either dev or build
yarn [dev|build]

Run server application

./fengg

Cross-Compilation

VERSION=$(git rev-parse --short HEAD) \
CARCH="armv7h" \
CHOST="armv7l-unknown-linux-gnueabihf" \
GOARM="7" \
GOARCH="arm" \
go build \
  -o fengg \
  -ldflags "-s -w" \
  -gcflags=all=-trimpath=$(pwd) \
  -asmflags=all=-trimpath=$(pwd) \
  -ldflags "-X tea.fen.gg/fengg/server/config.VERSION=$VERSION"

Merge database migration files

Drop the database and create a new one. Afterwards remember the highest schema version and delete all files in db/migrations.

Then run the following command (replace XXX with the mentioned version):

pg_dump \
  -T public.schema_migrations \
  -O -s -U postgres -d fengg \
    | sed -e '/^--/d' \
    | sed -e '/^$/d' \
    | grep -v '^SELECT pg_catalog\.set_config.*search_path' \
  > db/migrations/000XXX_merged_initial_database.up.sql

Commit and test your changes!