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

implement host redirection via in-app VPN or socket-filter #28

Open
kfix opened this issue Feb 22, 2017 · 2 comments
Open

implement host redirection via in-app VPN or socket-filter #28

kfix opened this issue Feb 22, 2017 · 2 comments

Comments

@kfix
Copy link
Owner

kfix commented Feb 22, 2017

build some VPN support in for doing ad-hoc redirection/filtering of specific hosts' WebView requests and/or their DNS resolutions
https://github.com/lshuzhi/SimpleTunnelMacos
https://github.com/liruqi/Mume-iOS
https://developer.apple.com/reference/networkextension/netunnelprovidermanager

Chrome does this with --host-rules=MAP <src-pattern> <host:port>, EXCLUDE <pattern>
https://github.com/electron/electron/blob/master/docs/api/chrome-command-line-switches.md#--host-rulesrules

@kfix kfix changed the title implement NetwrokExtension-based VPN implement host redirection via NetworkExtension-based VPN Feb 23, 2017
@kfix kfix changed the title implement host redirection via NetworkExtension-based VPN implement host redirection via VPN or socket-filter Jul 5, 2017
@kfix kfix changed the title implement host redirection via VPN or socket-filter implement host redirection via in-app VPN or socket-filter Jul 5, 2017
@johndpope
Copy link

johndpope commented Oct 18, 2018

I've come across this ticket - because I'm looking for a way to host a website completely offline using a HAR / http archive file.

I think this may parallel the efforts of this ticket - because you could modify the payloads of captured har file and potentially hack things if need be in swift for more granularity.
I built this codebase for another project - but could be cherry picked.
https://github.com/johndpope/HAR-playback-swift

in one line of code you can pass a har file which allows you to swizzle / intercept http requests and modify payload of urls.

related
HTTPArchive/httparchive.org#96

UPDATE
Never mind - I find this which suits my needs.
https://github.com/webrecorder/webrecorderplayer-electron/releases/tag/v1.5.0

kfix added a commit that referenced this issue Nov 25, 2019
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