Skip to content
This repository has been archived by the owner on Jun 21, 2022. It is now read-only.

New package: RR Redir #14

Closed
lars18th opened this issue Feb 25, 2019 · 19 comments
Closed

New package: RR Redir #14

lars18th opened this issue Feb 25, 2019 · 19 comments
Assignees
Labels
enhancement New feature or request

Comments

@lars18th
Copy link

Hi @Andy2244

I don't want to take advantage of you. But I see that you have a lot of experience when it comes to making packages for OpenWRT.

I do a request for creating a package for the tool RR Redir: openwrt/packages#8202
However, no one has accepted it.

I need to use it for this: My connection uses two different proxies. One is Master and another is a Backup. But the SoftEtherVPN doesn't have support for "multiple proxies". So each connection can use just one proxy. So my solution is to use this rrredir tool for connecting first to the Master and only if it's unavailable then connect to the Backup. With this solution the "proxy" configured with SoftEtherVPN is the port where the tool is listening.

More or less, is like a "load-balancer". And it works when I run it on my Linux workstation as a test bed. But, I want to include it in my OpenWRT router. So for this reason I need the package.

Can you help me, please?
RR Redir it's just a simple binary with no dependencies and plain C code (4 source files, and 2 headers).

@Andy2244
Copy link
Owner

Andy2244 commented Feb 25, 2019

Sure looks pretty trivial, i will have a go. Btw you just need the binary or should this start as a service and if so what are the default usefully start parameters for openwrt?

@lars18th
Copy link
Author

Sure looks pretty trivial, i will have a go. Btw you just need the binary or should this start as a service and if so what are the default usefully start parameters for openwrt?

Great!

Regarding the "configuration" as you can see it's a simple binary with parameters. So, different strategies are possible:

  1. Only binary package (no init script).
  2. Basic init script with SERVICE_PARAMS for the user configuration.
  3. Add one /etc/config/rrredir file for configure it.

I leave it up at your discretion for the best option. 😉

@Andy2244
Copy link
Owner

Andy2244 commented Feb 25, 2019

ok done, can you test if it works correctly. I just did a quick qemu test and binary showed the help.

Did also build via my package-builder against snapshots sdk.

PS: Will add config later, need to-do some other stuff.

@lars18th
Copy link
Author

Hi @Andy2244 ,

I don't have a docker image for package-builder. I only have the openwrt-buildroot image. So I can't compile the package at time to testing it.
Please, can you share some x86_64 or ramips-mt76x8 .ipk ?

Thank you!

@lars18th
Copy link
Author

@lars18th
Copy link
Author

Sorry @Andy2244 , I weel see now https://github.com/Andy2244/openwrt-package-builder !

Hi @Andy2244 ,
Quite complex to setup in my environment as it isn't a pure docker image. So, please share some binary precompiled package.

@Andy2244
Copy link
Owner

Quite complex to setup in my environment as it isn't a pure docker image.

What you mean by "isn't a pure docker image"? I don't understand what this means, since my builder is independent, self contained from anything else?

I mean what is your build environment? Do you use the sdk or full buildroot?

@lars18th
Copy link
Author

Hi @Andy2244 ,

I mean what is your build environment? Do you use the sdk or full buildroot?

I use a docker image with "all inside the docker image" for compiling the kernel with the buildroot. However, to compile a package I need to recompile all the buid environment just for one small package.

The problem is: I can't execute scripts in the command, I can only instance docker images. This is the reason to comment that your openwrt-package-builder is quite complex.

So, to not consume more time: You have some precompiled ipk?

@Andy2244
Copy link
Owner

I still don't know what target version you need, 18.06.x, snapshots?

So you cant just add this feed to your containers feeds.conf or feeds.conf.default and consume it?

PS: If you have docker already running, all you need is the builder script and a working build config.

VERSION="snapshots"
TARGET="ramips"
SUBTARGET="mt76x8"

FEED_1="src-git extra https://github.com/Andy2244/openwrt-extra.git"
FEED_1_PACKAGES="rrredir"

DISABLE_SIGNING=1

@lars18th
Copy link
Author

Hi @Andy2244 ,

Thank you for the tip (about the config.txt). However, I still have problems. Please see my issue at Andy2244/openwrt-package-builder#5

In the meantime, can you provide a build of? Please...

VERSION="18.06.1"
TARGET="ramips"
SUBTARGET="mt76x8"

FEED_1="src-git extra https://github.com/Andy2244/openwrt-extra.git"
FEED_1_PACKAGES="rrredir"

DISABLE_SIGNING=1

and

VERSION="18.06.1"
TARGET="x86"
SUBTARGET="64"

FEED_1="src-git extra https://github.com/Andy2244/openwrt-extra.git"
FEED_1_PACKAGES="rrredir"

DISABLE_SIGNING=1

Thank you!

@Andy2244
Copy link
Owner

here you go

rrredir_2018-12-20-ef4eb6ca-1_x86_64.zip
rrredir_2018-12-20-ef4eb6ca-1_mipsel_24kc.zip

@lars18th
Copy link
Author

here you go

rrredir_2018-12-20-ef4eb6ca-1_x86_64.zip
rrredir_2018-12-20-ef4eb6ca-1_mipsel_24kc.zip

Hi @Andy2244 ,

Tested on both platforms: it works like a charm.
So ready to mainstream.

You will implement some init.d script?

Thank you for your effort! 😉

@Andy2244
Copy link
Owner

Andy2244 commented Feb 27, 2019

You will implement some init.d script?

If i have some extra time yes.

@lars18th
Copy link
Author

You will implement some init.d script?

If i have some extra time yes.

OK. Great! When you can! 🎉
An thank you for your good support. 👍

@lars18th
Copy link
Author

lars18th commented Mar 6, 2019

Hi @Andy2244 ,

The tool rrredir has been updated with bind address support.
Please, can you update the package to the most recent version?

Thank you!

@Andy2244 Andy2244 self-assigned this Mar 6, 2019
@Andy2244 Andy2244 added the enhancement New feature or request label Mar 6, 2019
@Andy2244
Copy link
Owner

Andy2244 commented Mar 6, 2019

ok updated

@lars18th
Copy link
Author

lars18th commented Mar 6, 2019

ok updated

So, time for a PR to merge it with the Master OpenWRT Packages?

@Andy2244
Copy link
Owner

Andy2244 commented Mar 6, 2019

Need to figure out the service script first. Still working mainly on cifsd, samba4 atm, so maybe next weekend.

@lars18th
Copy link
Author

lars18th commented Mar 6, 2019

Need to figure out the service script first. Still working mainly on cifsd, samba4 atm, so maybe next weekend.

Hi @Andy2244 ,

OK. Don't worry! You're doing a good job. When you can.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants