EnglishFrenchSpanish

OnWorks favicon

ocproxy - Online in the Cloud

Run ocproxy in OnWorks free hosting provider over Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

This is the command ocproxy that can be run in the OnWorks free hosting provider using one of our multiple free online workstations such as Ubuntu Online, Fedora Online, Windows online emulator or MAC OS online emulator

PROGRAM:

NAME


ocproxy - lwip based proxy for openconnect

SYNOPSIS


ocproxy [options]

DESCRIPTION


This manual page documents briefly the ocproxy command.

ocproxy is a program that provides a SOCKS and port-forwarding proxy when used in
conjunction with openconnect(1). When using ocproxy, OpenConnect only handles network
activity that the user specifically asks to proxy, so the VPN tunnel no longer "hijacks"
all network traffic on the host.

ocproxy accomplishes this by running a lwIP network stack in userland, so the OS kernel is
no longer directly handling packets sent to and from the VPN connection.

BASIC USAGE


ocproxy should be invoked directly from OpenConnect or another VPN program; a file
descriptor number is passed through the VPNFD environment variable to tell ocproxy how to
send and receive VPN traffic. For example:

openconnect --script-tun --script "ocproxy -D 11080 -L2222:unix-host:22"
vpn.example.com

Commonly used options include:

-D, --dynfw port
Start up a SOCKS5 server on TCP port port to dynamically forward application-level
traffic over the VPN proxy. This is intended to resemble the -D option to ssh(1).

-L, --localfw port:host:hostport
Bind to port local TCP port port, and forward incoming connections to host:hostport
on the VPN. host can be a DNS name or a dotted-quad IP address. If the VPN
supplied a default DNS domain name or --domain was specified on the command line,
unqualified hostnames may be used. This is intended to resemble the -L option to
ssh(1).

-g, --allow-remote
Local listening sockets opened by the --dynfw and --localfw options, by default,
will be bound to the loopback interface only (127.0.0.1) so they are only available
on the local machine. If --allow-remote is specified, the sockets will be bound to
INADDR_ANY (0.0.0.0) instead, and other hosts may connect to them. This is
intended to resemble the -g option to ssh(1).

-k, --keepalive interval
Send a TCP keepalive packet every interval seconds on each open connection, on the
VPN side. This can help avoid idle timeouts, both on the VPN gateway and on any
stateful firewalls in between the two ends.

ADVANCED USAGE


These options may be useful for debugging ocproxy or diagnosing problems:

-v, --verbose
Enable verbose debugging output.

-T, --tcpdump
Write a log of all TCP or UDP packets traversing the VPN to /tmp/tcpdump. The
format largely mirrors the output of the tcpdump(8) utility.

ocproxy will normally retrieve IP configuration parameters through environment variables
provided by OpenConnect. These options may be used to override the autodetected
parameters:

-I, --ip local_ip
Use local_ip for the VPN side IP address. Example: 192.168.5.20. This is normally
set through the INTERNAL_IP4_ADDRESS environment variable.

-M, --mtu mtu_bytes
Use mtu_bytes as the maximum transmit unit on the VPN interface; it generally
depends on DTLS and UDP packet overhead. Example: 1300. This is normally set
through the INTERNAL_IP4_MTU environment variable.

-d, --dns dns_ip
Send all VPN side DNS queries to server dns_ip. Example: 192.168.5.2. This is
normally set through the INTERNAL_IP4_DNS environment variable.

-o, --domain domain
Use domain as the default DNS domain, for unqualified hostnames. This is normally
set through the CISCO_DEF_DOMAIN environment variable.

Use ocproxy online using onworks.net services


Free Servers & Workstations

Download Windows & Linux apps

  • 1
    OfficeFloor
    OfficeFloor
    OfficeFloor provides inversion of
    coupling control, with its: - dependency
    injection - continuation injection -
    thread injection For more information
    visit the...
    Download OfficeFloor
  • 2
    DivKit
    DivKit
    DivKit is an open source Server-Driven
    UI (SDUI) framework. It allows you to
    roll out server-sourced updates to
    different app versions. Also, it can be
    used fo...
    Download DivKit
  • 3
    subconverter
    subconverter
    Utility to convert between various
    subscription format. Shadowrocket users
    should use ss, ssr or v2ray as target.
    You can add &remark= to
    Telegram-liked HT...
    Download subconverter
  • 4
    SWASH
    SWASH
    SWASH is a general-purpose numerical
    tool for simulating unsteady,
    non-hydrostatic, free-surface,
    rotational flow and transport phenomena
    in coastal waters as ...
    Download SWASH
  • 5
    VBA-M (Archived - Now on Github)
    VBA-M (Archived - Now on Github)
    Project has moved to
    https://github.com/visualboyadvance-m/visualboyadvance-m
    Features:Cheat creationsave statesmulti
    system, supports gba, gbc, gb, sgb,
    sgb2Tu...
    Download VBA-M (Archived - Now on Github)
  • 6
    Stacer
    Stacer
    Linux System Optimizer and Monitoring
    Github Repository:
    https://github.com/oguzhaninan/Stacer.
    Audience: End Users/Desktop. User
    interface: Qt. Programming La...
    Download Stacer
  • More »

Linux commands

  • 1
    abidw
    abidw
    abidw - serialize the ABI of an ELF
    file abidw reads a shared library in ELF
    format and emits an XML representation
    of its ABI to standard output. The
    emitted ...
    Run abidw
  • 2
    abilint
    abilint
    abilint - validate an abigail ABI
    representation abilint parses the native
    XML representation of an ABI as emitted
    by abidw. Once it has parsed the XML
    represe...
    Run abilint
  • 3
    coresendmsg
    coresendmsg
    coresendmsg - send a CORE API message
    to the core-daemon daemon ...
    Run coresendmsg
  • 4
    core_server
    core_server
    core_server - The primary server for
    SpamBayes. DESCRIPTION: Currently serves
    the web interface only. Plugging in
    listeners for various protocols is TBD.
    This ...
    Run core_server
  • 5
    fwflash
    fwflash
    fwflash - program to flash image file
    to a connected NXT device ...
    Run fwflash
  • 6
    fwts-collect
    fwts-collect
    fwts-collect - collect logs for fwts
    bug reporting. ...
    Run fwts-collect
  • More »

Ad