Git Product home page Git Product logo

cpolar-openwrt's Introduction

Cpolar-OpenWrt

Cpolar is a secure intranet penetration tool. It can easily publish internal . websites to the public network, SSH remote home soft routing, remote desktop , to office PC, it can simulate the local development environment into a public network environment, convenient For WeChat public number, small programs, OpenAPI development and debugging. Is the development, geek, IT operations staff must be a weapon.

Installing package

Download the prebuild package and copy it onto your OpenWrt installation, preferably into the /tmp folder.

Then install the ipk package file:

opkg install cpolar_*.ipk

Now start Cpolar:

/etc/init.d/cpolar start

Compiling from Sources

To include Cpolar into your OpenWrt image or to create an .ipk package (equivalent to Debians .deb files), you have to build an OpenWrt image.

To build OpenWrt on Debian, you need to install these packages:

sudo apt-get install subversion g++ zlib1g-dev build-essential git python
sudo apt-get install libncurses5-dev gawk gettext unzip file libssl-dev wget

Now prepare OpenWrt:

git clone https://github.com/openwrt/openwrt
cd openwrt

./scripts/feeds update -a
./scripts/feeds install -a

Now you can insert the cpolar package using a package feed or add the package manually.

Add package by feed

A feed is the standard way packages are made available to the OpenWrt build system.

Put this line in your feeds list file (e.g. feeds.conf.default)

src-git cpolar https://github.com/probezy/cpolar-openwrt.git

Update and install the new feed

./scripts/feeds update cpolar
./scripts/feeds install cpolar

Now continue with the building packages section.

Add package by hand

git clone https://github.com/probezy/cpolar-openwrt.git
cp -rf cpolar-openwrt/cpolar package/
rm -rf cpolar-openwrt/

Now continue with the building packages section.

Building Packages

Configure packages:

make menuconfig

Now select the appropiate "Target System" and "Target Profile" depending on what target chipset/router you want to build for. Also mark the Cpolar package under Network ---> Network ---> <*> cpolar.

Now compile/build everything:

make

The images and all *.ipk packages are now inside the bin/ folder, including the zerotier package. You can install the Cpolar .ipk on the target device using opkg install <ipkg-file>.

For details please check the OpenWrt documentation.

Build bulk packages

For a release, it is useful the build packages at a bulk for multiple targets:

#!/bin/sh

# dump-target-info.pl is used to get all targets configurations:
# https://git.openwrt.org/?p=openwrt/openwrt.git;a=blob;f=scripts/dump-target-info.pl

./scripts/dump-target-info.pl architectures | while read pkgarch target1 rest; do
  echo "CONFIG_TARGET_${target1%/*}=y" > .config
  echo "CONFIG_TARGET_${target1%/*}_${target1#*/}=y" >> .config
  echo "CONFIG_PACKAGE_example1=y" >> .config

  # Debug output
  echo "pkgarch: $pkgarch, target1: $target1"

  make defconfig
  make -j4 tools/install
  make -j4 toolchain/install

  # Build package
  make package/cpolar/{clean,compile}

  # Free space (optional)
  rm -rf build_dir/target-*
  rm -rf build_dir/toolchain-*
done

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.