bave/natporte
Folders and files
| Name | Name | Last commit date | ||
|---|---|---|---|---|
Repository files navigation
This program/software is Large Scale Network Address Translation(LSNAT, CGN, LSN) for verification test.
- runnning under the certain operating systems are available to use divert socket
- add kernel options
- must
- options IPDIVERT
- options IPFIREWALL
- either way..
- options IPFIREWALL_FORWARD
- optionsIPFIREWALL_DEFAULT_TO_ACCEPT
- options IPFIREWALL_VERBOSE
- options IPFIREWALL_VERBOSE_LIMIT=1000
- use library/software
- natporte
- c/c++
- libboost(later 1.48.0)
- google-perftools for libtcmalloc(later 1.8.3)
- compile options
-DDEBUG
-DWAIT_TIME_DELETE
-DOPT_HOSTID
-DIP_CHECKSUM
-DDIFF_CKSUM
- pool_server
- nodejs
- npm
- npm install opts
- npm install forever -g
- using pool server
- Usage: node ./pool_server [options]
- show help command
-h, --help
- set udp session timeout [sec] (default:10)
-u, --udptimeout <value>
- set tcp session timeout [sec] (default:3600)
-t, --tcptimeout <value>
- set maximum connections (default:100)
-m, --max <value>
- set end port number (default:65534)
-e, --end <value>
- set start port number (default:4097)
-s, --start <value>
- show interval debug messages
-i, --idebug
- show debug messages
-d, --debug
- show natporte's pool server version
-v, --version
- using natporte
- Usage: ./natporte -w ifname -l ifname
- w: Wan interface name [must]
- l: Lan interface name [must]
- a: Addrpool port number [default:(tcp)8668]
- d: Divert port number [default:(divert)8668]
- r: send back to Reset when tcp session already limited
- b: ring Buffer size using by pool server communitacion
- n: force Negated the DF flag effect
- h: adding Hostid (compile option)
- v: Verbose mode (compile option)
- natctl.sh
- natctl.sh is simple script for starting natporte.
- It has a few parameters which are following.
- LAN_IF
- local area network side interface
- WNA_IF
- wide area network side intertace
- FILTER_NUM
- injection number of ipfw
- DIVERT_PORT_IO
- divert socket's port number(default:8668)