diff --git a/README.md b/README.md index 546a509..d9beeca 100644 --- a/README.md +++ b/README.md @@ -1,16 +1,16 @@ # go-firewall -[![Go Reference](https://pkg.go.dev/badge/github.com/grmrgecko/firewall.svg)](https://pkg.go.dev/github.com/grmrgecko/firewall) +[![Go Reference](https://pkg.go.dev/badge/git.gec.im/GRMrGecko/go-firewall.svg)](https://pkg.go.dev/git.gec.im/GRMrGecko/go-firewall) A Go module that presents a single, uniform interface over the many firewall managers found across operating systems. You describe rules with one platform‑agnostic `Rule` struct and the module translates them to whatever backend is actually running on the host. -Reference documentation: +Reference documentation: ```go -import "github.com/grmrgecko/firewall" +import "git.gec.im/GRMrGecko/go-firewall" ``` ## Supported backends @@ -31,7 +31,7 @@ import ( "context" "log" - "github.com/grmrgecko/firewall" + "git.gec.im/GRMrGecko/go-firewall" ) func main() { diff --git a/cmd/go-firewall/backup.go b/cmd/go-firewall/backup.go index 3dd8d55..bc4b69f 100644 --- a/cmd/go-firewall/backup.go +++ b/cmd/go-firewall/backup.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the backup and restore subcommands. A backup captures the diff --git a/cmd/go-firewall/cli_test.go b/cmd/go-firewall/cli_test.go index 3dd4935..5cae1f5 100644 --- a/cmd/go-firewall/cli_test.go +++ b/cmd/go-firewall/cli_test.go @@ -4,7 +4,7 @@ import ( "strings" "testing" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // These tests cover the CLI's pure logic — flag parsing, rate/ICMP token diff --git a/cmd/go-firewall/go.mod b/cmd/go-firewall/go.mod index 5f8c7be..e7f7f83 100644 --- a/cmd/go-firewall/go.mod +++ b/cmd/go-firewall/go.mod @@ -1,10 +1,10 @@ -module github.com/grmrgecko/firewall/cmd/go-firewall +module git.gec.im/GRMrGecko/go-firewall/cmd/go-firewall go 1.26.4 require ( + git.gec.im/GRMrGecko/go-firewall v0.0.0-00010101000000-000000000000 github.com/alecthomas/kong v1.15.0 - github.com/grmrgecko/firewall v0.0.0-00010101000000-000000000000 github.com/willabides/kongplete v0.4.0 ) @@ -26,7 +26,7 @@ require ( golang.org/x/sys v0.40.0 // indirect ) -replace github.com/grmrgecko/firewall => ../.. +replace git.gec.im/GRMrGecko/go-firewall => ../.. // Mirrors the library's own replace: the old coreos/go-systemd import path is // redirected to the maintained v22 module (the v0 release does not compile diff --git a/cmd/go-firewall/info.go b/cmd/go-firewall/info.go index 7377b4e..2c8b2c4 100644 --- a/cmd/go-firewall/info.go +++ b/cmd/go-firewall/info.go @@ -8,7 +8,7 @@ import ( "reflect" "sort" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the read-only/info subcommands: status (backend + caps), diff --git a/cmd/go-firewall/main.go b/cmd/go-firewall/main.go index da771ec..06224bb 100644 --- a/cmd/go-firewall/main.go +++ b/cmd/go-firewall/main.go @@ -1,5 +1,5 @@ // Command go-firewall is a unified firewall management CLI built on the -// github.com/grmrgecko/firewall library. It auto-detects the host's active +// git.gec.im/GRMrGecko/go-firewall library. It auto-detects the host's active // firewall backend and exposes a single command set across every backend the // library supports (firewalld, ufw, CSF, APF, iptables, nftables, pf, WFP). // @@ -19,7 +19,7 @@ import ( "github.com/alecthomas/kong" "github.com/willabides/kongplete" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // managerDetectTimeout bounds backend detection so a hung probe (pfctl, D-Bus) diff --git a/cmd/go-firewall/nat.go b/cmd/go-firewall/nat.go index 7af6d80..c49e4ba 100644 --- a/cmd/go-firewall/nat.go +++ b/cmd/go-firewall/nat.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the NAT command group: list, add, remove. NAT rules are diff --git a/cmd/go-firewall/output.go b/cmd/go-firewall/output.go index f9e063f..3886840 100644 --- a/cmd/go-firewall/output.go +++ b/cmd/go-firewall/output.go @@ -6,7 +6,7 @@ import ( "strconv" "strings" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the human-readable renderers for the library's data types. diff --git a/cmd/go-firewall/parse.go b/cmd/go-firewall/parse.go index 27698e1..d95dbf1 100644 --- a/cmd/go-firewall/parse.go +++ b/cmd/go-firewall/parse.go @@ -5,7 +5,7 @@ import ( "strconv" "strings" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds a small parser the firewall library keeps private diff --git a/cmd/go-firewall/policy.go b/cmd/go-firewall/policy.go index d1dc855..52dbb9a 100644 --- a/cmd/go-firewall/policy.go +++ b/cmd/go-firewall/policy.go @@ -4,7 +4,7 @@ import ( "context" "fmt" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the default-policy command group: get and set. A default diff --git a/cmd/go-firewall/rule.go b/cmd/go-firewall/rule.go index 3f1d5cd..0ea1296 100644 --- a/cmd/go-firewall/rule.go +++ b/cmd/go-firewall/rule.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the rule command group: list, add, remove, insert, move. diff --git a/cmd/go-firewall/set.go b/cmd/go-firewall/set.go index 51bd628..2df69af 100644 --- a/cmd/go-firewall/set.go +++ b/cmd/go-firewall/set.go @@ -5,7 +5,7 @@ import ( "fmt" "os" - fw "github.com/grmrgecko/firewall" + fw "git.gec.im/GRMrGecko/go-firewall" ) // This file holds the address-set command group: list, create, remove, diff --git a/go.mod b/go.mod index 9c24ed7..ce77e92 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/grmrgecko/go-firewall +module git.gec.im/GRMrGecko/go-firewall go 1.26.4