Skip to content

Commit

Permalink
Merge pull request #19 from mysteriumnetwork/improvement/port-change
Browse files Browse the repository at this point in the history
Change local environment port to default one - 8443
  • Loading branch information
Waldz authored Oct 21, 2022
2 parents cb2491b + 54f9446 commit 1041915
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -128,7 +128,7 @@ You are supposed to see your server's IP changed
3. Check if forwarder is redirecting requests to upstream HTTPS proxy
```bash
FORWARDER_IP=`docker inspect -f '{{range .NetworkSettings.Networks}}{{.IPAddress}}{{end}}' forwarder`
curl --proxy $FORWARDER_IP:8080 "http://ipinfo.io"
curl --proxy $FORWARDER_IP:8443 "http://ipinfo.io"
```
You should see different current IP of your server

Expand Down
4 changes: 2 additions & 2 deletions ci/commands/command_test_e2e.go
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ func TestE2EHTTPS() error {
originalIP := checkIP("https://api.ipify.org/?format=text")
fmt.Println("Original IP:", originalIP)

redirectRule := []string{"OUTPUT", "-p", "tcp", "-m", "tcp", "--dport", "443", "-j", "REDIRECT", "--to-ports", "8080"}
redirectRule := []string{"OUTPUT", "-p", "tcp", "-m", "tcp", "--dport", "443", "-j", "REDIRECT", "--to-ports", "8443"}
if err := ipTablesAppend(redirectRule...); err != nil {
return err
}
Expand All @@ -66,7 +66,7 @@ func TestE2EHTTP() error {
originalIP := checkIP("http://api.ipify.org/?format=text")
fmt.Println("Original IP:", originalIP)

redirectRule := []string{"OUTPUT", "-p", "tcp", "-m", "tcp", "--dport", "80", "-j", "REDIRECT", "--to-ports", "8080"}
redirectRule := []string{"OUTPUT", "-p", "tcp", "-m", "tcp", "--dport", "80", "-j", "REDIRECT", "--to-ports", "8443"}
if err := ipTablesAppend(redirectRule...); err != nil {
return err
}
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ services:
context: .
dockerfile: Dockerfile
command: >
--proxy.bind=:8080
--proxy.bind=:8443
--proxy.upstream-url=http://superproxy.com:8080
--proxy.user=
--proxy.pass=
Expand All @@ -16,5 +16,4 @@ services:
- NET_ADMIN
- NET_RAW
ports:
- "8080:8080"
- "8443:8443"
3 changes: 3 additions & 0 deletions magefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,10 @@ func Build() error {
// Run the application
func Run() error {
return sh.RunV(buildPath,
"--proxy.bind=:8443",
"--proxy.upstream-url=http://superproxy.com:8080",
"--proxy.user=",
"--proxy.pass=",
"--filter.zones=api.ipify.org",
"--exclude.hostnames=ipify.org",
)
Expand Down

0 comments on commit 1041915

Please sign in to comment.