Skip to content
This repository has been archived by the owner on Jan 28, 2024. It is now read-only.

Commit

Permalink
Revert last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
finzzz committed Apr 26, 2021
1 parent 6b4295b commit 584e34d
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 14 deletions.
18 changes: 9 additions & 9 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,23 +13,23 @@ Zero overhead wireguard setup. Tested on Debian 10.

# Requirements
## Packages
[wireguard](https://www.wireguard.com/install/) curl ndppd qrencode iptables ipcalc jq
[wireguard](https://www.wireguard.com/install/) curl qrencode iptables ipcalc jq

## IPv6
If you need IPv6, please make sure you can access internet using ipv6 before proceeding.

There are 2 types of connection:
### NAT
- public IPv6 is being shared, and internal IPv6 uses ULA (Unique Local Address)
- you need to have IPv6 address similar to `2001::a:b:c:d/64`
- Public IPv6 is being shared, and internal IPv6 uses ULA (Unique Local Address).
- You need to have IPv6 address similar to `2001::a:b:c:d/64`.
<img src="https://raw.githubusercontent.com/finzzz/wgzero/master/static/nat.jpg" width="500" height="300">

### Full Routing
- assign public IPv6 to each clients
- you need to have IPv6 address similar to `2001:a:b:c::/64`
- notice the colons, it means that you can assign multiple addresses to clients
- not every providers provide this, some require opening a ticket (linode provides this)
- **make sure you don't assign those IP addresses to any interfaces**
- Assign public IPv6 to each clients.
- Personally, I got this feature works only on Linode (Vultr failed, not sure other about providers).
- You need to have IPv6 address similar to `2001:a:b:c::/64`.
- notice the colons, it means that you can assign multiple addresses to clients.
- **Make sure you don't assign those IP addresses to any interfaces.**

<img src="https://raw.githubusercontent.com/finzzz/wgzero/master/static/fr.jpg" width="500" height="275">

Expand All @@ -55,7 +55,7 @@ wgzero qr clientname
```bash
echo "deb http://deb.debian.org/debian buster-backports main" >> /etc/apt/sources.list
apt update && apt upgrade
apt install linux-headers-$(uname -r) wireguard curl ndppd qrencode iptables ipcalc jq
apt install linux-headers-$(uname -r) wireguard curl qrencode iptables ipcalc jq
# replace linux-headers-$(uname -r) with linux-headers-amd64 if errors
```

Expand Down
2 changes: 1 addition & 1 deletion examples/fr.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ Proceed only when `ping6 -I eth0 google.com` succeeds
valid_lft forever preferred_lft forever
```

/etc/ndppd.conf
/etc/ndppd.conf (may not be needed)
```
proxy eth0 {
timeout 500
Expand Down
10 changes: 6 additions & 4 deletions wgzero
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ NC=$'\033[0m'

Run(){
IsRoot
CheckPackages "wg iptables curl ndppd qrencode ipcalc jq"
CheckPackages "wg iptables curl qrencode ipcalc jq"

case "$1" in
"install")
Expand Down Expand Up @@ -148,9 +148,11 @@ Install(){
echo "ExternalRouting=$VAL" >> "$CONFIGFOLDER/conf"
if [ "$VAL" == "2" ]; then
TYPE="FR"
curl -so /etc/ndppd.conf "$TEMPLATEURL/ndppd.conf"
sed -i -e "s/IFACE/$IFACE/g" -e "s/PREFIX/$(GetConf IPv6Prefix)/g" /etc/ndppd.conf
systemctl restart ndppd.service

## Need more research
# curl -so /etc/ndppd.conf "$TEMPLATEURL/ndppd.conf"
# sed -i -e "s/IFACE/$IFACE/g" -e "s/PREFIX/$(GetConf IPv6Prefix)/g" /etc/ndppd.conf
# systemctl restart ndppd.service
fi
fi

Expand Down

0 comments on commit 584e34d

Please sign in to comment.