Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Server Config #1

Open
iambenmitchell opened this issue Jun 2, 2018 · 4 comments
Open

Server Config #1

iambenmitchell opened this issue Jun 2, 2018 · 4 comments

Comments

@iambenmitchell
Copy link

Hello, i am trying to use my own server, however when i modify the file: VpnManager.swift with my own IP, port etc for my Shadow socks proxy server. It builds fine, no errors. But when i go to connect, my ip is unchanged

I also noticed that in settings -> vpn -> AntiRevoke, the server field is 8.8.8.8

could you tell me what i need to do in order to have this connect to my proxy?

Thanks!

@iambenmitchell
Copy link
Author

I edited all the settings in PacketTunnelProvider.swift and also VpnManager.swift

now when i press connect, it says connected, then it quickly switches to disconnected,

here is my log:

2018-06-02 14:17:03.613156+0100 AntiRevoke[1508:296701] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x1d00988d0 AntiRevoke.RoundedImage:0x105230430.height == 31 (active)>",
"<NSLayoutConstraint:0x1d0098f10 V:|-(6)-[AntiRevoke.RoundedImage:0x105230430] (active, names: '|':UITableViewCellContentView:0x10522f870 )>",
"<NSLayoutConstraint:0x1d0098f60 V:[AntiRevoke.RoundedImage:0x105230430]-(6.5)-| (active, names: '|':UITableViewCellContentView:0x10522f870 )>",
"<NSLayoutConstraint:0x1d009ac20 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x10522f870.height == 43.6667 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1d00988d0 AntiRevoke.RoundedImage:0x105230430.height == 31 (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
2018-06-02 14:17:03.615026+0100 AntiRevoke[1508:296701] [LayoutConstraints] Unable to simultaneously satisfy constraints.
Probably at least one of the constraints in the following list is one you don't want.
Try this:
(1) look at each constraint and try to figure out which you don't expect;
(2) find the code that added the unwanted constraint or constraints and fix it.
(
"<NSLayoutConstraint:0x1d00984c0 UIButton:0x10522f1b0'Connect'.height == 44 (active)>",
"<NSLayoutConstraint:0x1d00992d0 V:[UIButton:0x10522f1b0'Connect']-(0)-| (active, names: '|':UITableViewCellContentView:0x105232d50 )>",
"<NSLayoutConstraint:0x1d0099320 V:|-(0)-[UIButton:0x10522f1b0'Connect'] (active, names: '|':UITableViewCellContentView:0x105232d50 )>",
"<NSLayoutConstraint:0x1d009b0d0 'UIView-Encapsulated-Layout-Height' UITableViewCellContentView:0x105232d50.height == 43.6667 (active)>"
)

Will attempt to recover by breaking constraint
<NSLayoutConstraint:0x1d00984c0 UIButton:0x10522f1b0'Connect'.height == 44 (active)>

Make a symbolic breakpoint at UIViewAlertForUnsatisfiableConstraints to catch this in the debugger.
The methods in the UIConstraintBasedLayoutDebugging category on UIView listed in <UIKit/UIView.h> may also be helpful.
off
Connecting to AntiRevoke
connecting
off
Connecting to AntiRevoke
connecting
off

@JosephShenton
Copy link
Owner

Hi Ben,

As previously discussed in direct messages you do not need to change the PacketTunnel you only need to change VPNmanager, the IP should stay as 8.8.8.8, if you go to google and type what's my ip if you set it up correctly you should see an IP change. If not you'll have to edit a tiny piece of code in PacketTunnel which will redirect through the proxy router

@iambenmitchell
Copy link
Author

Hi, i made the match domains [""] left 8.8.8.8 as it is, and even used https://my.ishadowx.net

Still doesn't work,

As a last attempt before contacting you again, i tried replacing 8.8.8.8 with the hostname from https://my.ishadowx.net -

still didnt work,

i even tried using the IP instead of host name, (i got it by pinging the hostname)

not working.

Could you try seeing if you can get yours to work on your computer, it might be my computer being weird.

@iambenmitchell
Copy link
Author

Weird, i think it is sort of working, this is the log from the server:

2018-06-03 02:01:04 DEBUG destroy
2018-06-03 02:01:04 DEBUG destroying local
2018-06-03 02:01:06 DEBUG accept
2018-06-03 02:01:06 WARNING unsupported addrtype 44, maybe wrong password
2018-06-03 02:01:06 ERROR can not parse header
Traceback (most recent call last):
File "/usr/lib/python2.7/dist-packages/shadowsocks/tcprelay.py", line 259, in _handle_stage_hello
raise Exception('can not parse header')
Exception: can not parse header
2018-06-03 02:01:06 DEBUG destroy
2018-06-03 02:01:06 DEBUG destroying local

howver IP unchanged

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants