Commit graph

147 commits

Author SHA1 Message Date
Emilien Devos
9dad356bee
fix: issue with omiting endpoint (#157)
fixes #156
2025-02-19 17:21:17 +00:00
lexandr0s
288687b873
Add hint to run Wireproxy as system daemon in rc.d-based system (#164)
* Add hint for rc.d service

* Update README.md

---------

Co-authored-by: root <root@prox1.example.com>
2025-02-18 12:27:18 +00:00
pufferffish
f17557487d add IPRoyal referral link 2025-02-18 12:26:13 +00:00
dependabot[bot]
a57972e756
Bump golang.org/x/net from 0.23.0 to 0.33.0 (#160)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.23.0 to 0.33.0.
- [Commits](https://github.com/golang/net/compare/v0.23.0...v0.33.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: direct:production
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2025-01-31 16:26:26 +00:00
Christian Speckner
7bb1be2d20
Make sure that closing one direction closes the other, too. (#159)
* Make sure that closing one direction closes the other, too.

* Pacify linter.
2025-01-31 16:09:16 +00:00
Lars Gerber
47cd451c80
docs: add syntax highlighting and Go install command (#158)
* docs: add syntax language for codeblocks

* docs: add install instructions for Go
2025-01-31 15:59:57 +00:00
Takanori Hirano
d710683181
Fix PingRecord race condition (#149) 2024-12-26 17:20:01 +00:00
Yaroslav
3098c397e7
Update README.md (#150)
Fixed curl example command to work well with sudo
2024-12-26 17:19:42 +00:00
dependabot[bot]
3e6e5a61f0
Bump golang.org/x/crypto from 0.21.0 to 0.31.0 (#146)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.21.0 to 0.31.0.
- [Commits](https://github.com/golang/crypto/compare/v0.21.0...v0.31.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-12-12 00:24:48 +00:00
Luiz Henrique Gomes Palácio
4a564b5ea2
Fix HTTP proxy authentication to support both preemptive and challenge-response auth (#134) 2024-09-04 04:21:40 +08:00
Niko
5b7f822f17
Fix broken sandboxing resulting in SIGABRT (#136) 2024-09-04 04:08:52 +08:00
Artem Russkikh
3729bced93
Update README (#137) 2024-09-04 04:08:20 +08:00
Nicholas
cb1f39b3e5
Support env lookup for some values (#122)
Co-authored-by: pufferfish <74378430+pufferffish@users.noreply.github.com>
2024-07-22 15:38:19 +01:00
pufferffish
f8a5d70c71 make device setting fields public 2024-07-22 15:38:07 +01:00
Amirhossein Shaerpour
42a097d490
change - add default configuration paths (#121) 2024-07-22 15:11:26 +01:00
pufferffish
ff99bfd4a6 fix config parsing 2024-07-22 15:10:12 +01:00
dependabot[bot]
e749217090
Bump golang.org/x/net from 0.21.0 to 0.23.0 (#113)
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.21.0 to 0.23.0.
- [Commits](https://github.com/golang/net/compare/v0.21.0...v0.23.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2024-04-19 15:21:34 +01:00
pufferfish
6ab7069908
fix landlock restriction while files do not exists (#114) 2024-04-19 15:15:09 +01:00
pufferfish
a6797166eb
Limit wireproxy's permissions with landlock (#108)
* Limit wireproxy's permissions with landlock

* Show better debug message

* Fix crash when info is null

* Fix crash when landlock ABI is outdated

* remove /dev/std{in,out,err} from landlock restriction
2024-04-13 02:38:48 +01:00
pufferfish
eccf83a0cf
Add health status endpoint (#107)
* implement metric endpoint

* implement ICMP ping

* fix linting

* fix IPv6 pings

* Add documentation for --info
2024-04-12 05:24:16 +01:00
pufferfish
54cedea2e4 Update LICENSE 2024-04-10 03:42:15 +01:00
pufferffish
bbde9cd266 bump version 2024-04-06 20:21:37 +01:00
J. Dekker
4f066d050a
systemd: tight sandboxing (#103)
wireproxy needs very little permissions, we can restrict it to basically
nothing. DynamicUser means the system will generate a UID on demand
for service, also CAP_NET_BIND_SERVICE can be used to allow this user
to bind to a port < 1024 if desired. Also LoadCredential lets us read
a file with tight permissions i.e. root:root 0400 and pass it to only
wireproxy in an ephemeral and constrained manner.

Signed-off-by: J. Dekker <jdek@itanimul.li>
2024-03-18 16:42:03 +00:00
pufferfish
c710def46d
Update README.md to mention Amnezia fork 2024-02-20 19:40:19 +00:00
Evsyukov Denis
a2d7aecb6f
fix: improvements in memory consumption (#100)
* fix: must close the connection after processing

I think it should help to close #80

* feat: migration to github.com/things-go/go-socks5

- preallocate config slices
- not used interfaces in consumer
- do not allocate new variables in loops

* feat: close connection after full processing

* feat: correct process sigint signal

* feat: improve build system

* fix: http proxy

* feat: update golangci-lint-action to v3.7.0

* feat: correct process routines

* fix: close http conn correctly

* feat: update golangci-lint-action to v4

* fix: goreleaser used clean now
2024-02-11 12:45:43 +00:00
guangwu
49f568810c
fix: typo (#93)
Signed-off-by: guoguangwu <guoguangwu@magic-shield.com>
2024-02-09 10:57:11 +00:00
dependabot[bot]
af973227e9
Bump golang.org/x/crypto from 0.14.0 to 0.17.0 (#98)
Bumps [golang.org/x/crypto](https://github.com/golang/crypto) from 0.14.0 to 0.17.0.
- [Commits](https://github.com/golang/crypto/compare/v0.14.0...v0.17.0)

---
updated-dependencies:
- dependency-name: golang.org/x/crypto
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
2023-12-19 11:33:21 +08:00
Jonah Brüchert
0f4d79dea8
Fix build on go 1.21 by updating wireguard-go (#91) 2023-10-18 03:21:11 +01:00
Johan
d1a455e87d
Remove interface address subnet length check (#86)
Resolves #82
2023-08-17 23:10:38 +01:00
François Guerraz
5f76f777d5
Use io.Copy instead of io.CopyBuffer (#85) 2023-08-17 22:40:19 +01:00
Jonah Brüchert
d2f7768c51
Update dependencies (#79)
* Update dependencies

gvisor was not updated to the latest version, because it did not
compile.

* actions: Update go version to 1.20

* docker: Update go version to 1.20
2023-08-17 11:42:52 +01:00
villepeh
05c8493981
Provide an example systemd service file (#77)
* Create README.md

* Create wireproxy.service

* Update README.md
2023-07-15 20:39:33 +01:00
Jonah Brüchert
31e6afd75d
Allow to use wireproxy as endpoint (#74)
This is useful for running wireguard endpoints in unprivileged
containers.
2023-07-15 20:39:24 +01:00
François Guerraz
aa207764b2
Implement STDIOTunnel (#70) 2023-06-14 03:17:32 +01:00
Mike Dacre
edf63253df
Update README with Firefox VPN tabs instructions (#73)
* Update README with Firefox VPN tabs instructions

* move instructions to another file

---------

Co-authored-by: octeep <github@bandersnatch.anonaddy.com>
2023-06-14 03:04:06 +01:00
pufferfish
b0a405a075
Update wireproxy.yml 2023-05-22 18:05:32 +01:00
Wayback Archiver
25e6568f4d
Add support for http proxy (#68)
* Add support for http proxy

* add test case for http proxy

---------

Co-authored-by: octeep <github@bandersnatch.anonaddy.com>
Co-authored-by: pufferfish <74378430+pufferffish@users.noreply.github.com>
2023-05-22 17:47:33 +01:00
pufferfish
d9c6eb7143
add test CI (#69) 2023-05-22 17:03:27 +01:00
Wayback Archiver
30d2697f03
Add silent flag to reduce output (#67) 2023-05-20 23:47:19 +01:00
Wayback Archiver
6fcd53d2a0
Fix tag describe in makefile (#65)
* Fix tag describe in makefile

* Use build directive from makefile
2023-05-09 16:11:37 +01:00
octeep
d898e7a931 Merge pull request #60 from octeep/dependabot/go_modules/golang.org/x/net-0.7.0
Bump golang.org/x/net from 0.0.0-20220225172249-27dd8689420f to 0.7.0
2023-02-25 19:30:25 +00:00
dependabot[bot]
2c327f6f76 Bump golang.org/x/net from 0.0.0-20220225172249-27dd8689420f to 0.7.0
Bumps [golang.org/x/net](https://github.com/golang/net) from 0.0.0-20220225172249-27dd8689420f to 0.7.0.
- [Release notes](https://github.com/golang/net/releases)
- [Commits](https://github.com/golang/net/commits/v0.7.0)

---
updated-dependencies:
- dependency-name: golang.org/x/net
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 19:10:00 +00:00
octeep
9afc0f75ff Merge pull request #59 from octeep/dependabot/go_modules/golang.org/x/sys-0.1.0
Bump golang.org/x/sys from 0.0.0-20220315194320-039c03cc5b86 to 0.1.0
2023-02-25 19:09:32 +00:00
dependabot[bot]
d5ec898e57 Bump golang.org/x/sys from 0.0.0-20220315194320-039c03cc5b86 to 0.1.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.0.0-20220315194320-039c03cc5b86 to 0.1.0.
- [Release notes](https://github.com/golang/sys/releases)
- [Commits](https://github.com/golang/sys/commits/v0.1.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: indirect
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-02-25 11:41:30 +00:00
Wind Wong
62f53faa35 Merge pull request #53 from 0ff/feature/allow-embedding
make VirtualTun fields public
2023-01-05 09:56:21 +08:00
Wind Wong
ae453954ea Update LICENSE 2022-12-31 10:17:01 +00:00
Fabian Off
b18b709f84 make VirtualTun fields public 2022-12-23 14:32:36 +01:00
octeep
2d53f675af add Makefile 2022-09-01 19:06:20 +08:00
octeep
41f2d96f04 support go 1.19 2022-09-01 10:53:10 +08:00
octeep
9a1616cb25 bump version to 1.0.4 2022-08-23 22:04:36 +08:00