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!