How to quickly add a route in OSX

sudo route -n add 10.10.10.10/16 192.168.4.11
sudo route -n delete 10.10.10.10/16 192.168.4.11

Viewing route table with:

netstat -nr

ROUTE(8) BSD System Manager’s Manual

NAME
route — manually manipulate the routing tables

SYNOPSIS
route [-dnqtv] command [[modifiers] args]

DESCRIPTION
Route is a utility used to manually manipulate the network routing tables. It normally is not needed,
as a system routing table management daemon such as routed(8), should tend to this task.

The route utility supports a limited number of general options, but a rich command language, enabling
the user to specify any arbitrary request that could be delivered via the programmatic interface dis-cussed discussed
cussed in route(4).

https://developer.apple.com/library/mac/documentation/Darwin/Reference/Manpages/man8/route.8.html

How to quickly add a route in OSX

Set up scaling option for DSM Synology

* Check scaling setup:

sysctl net.ipv4.tcp_window_scaling

* Turned off scaling to 0 as root:

sysctl -w "net.ipv4.tcp_window_scaling=0"

* To maintain the changes after a restart, include the file S99sysctl.sh:

vi /usr/syno/etc/rc.d/S99sysctl.sh
#!/bin/sh
sysctl -w "net.ipv4.tcp_window_scaling=0"
 chmod +x /usr/syno/etc/rc.d/S99sysctl.sh

 

RELATED:
Slow connection and email attachments download to 0 kb

Configuration of operating systems

TCP Window Scaling is implemented in Windows since Windows 2000. It is enabled by default in Windows Vista / Server 2008 and newer, but can be turned off manually if required.

Linux
Linux kernels (from 2.6.8, August 2004) have enabled TCP Window Scaling by default. It chooses the good value of the option by default. The configuration parameters are found in the /proc filesystem, see pseudo-file /proc/sys/net/ipv4/tcp_window_scaling and its companions /proc/sys/net/ipv4/tcp_rmem and /proc/sys/net/ipv4/tcp_wmem

Scaling can be turned off by issuing the command sysctl -w “net.ipv4.tcp_window_scaling=0” as root. To maintain the changes after a restart, include the line “net.ipv4.tcp_window_scaling=0” in /etc/sysctl.conf.

FreeBSD, NetBSD and Mac OS X 
The default setting for FreeBSD, NetBSD and Mac OS X is to have window scaling (and other features related to RFC 1323) enabled.
To verify their status, a user can check the value of the “net.inet.tcp.rfc1323” variable via the sysctl command:

sysctl net.inet.tcp.rfc1323

A value of 1 (output “net.inet.tcp.rfc1323=1”) means scaling is enabled, 0 means “disabled”. If enabled it can be turned off by issuing the command:

sudo sysctl -w net.inet.tcp.rfc1323=0

This setting is lost across a system restart, to make it permanent it must be written in the /etc/sysctl.conf configuration file, that can be accomplished via the command:

echo 'net.inet.tcp.rfc1323=0' | sudo tee -a /etc/sysctl.conf

 

Set up scaling option for DSM Synology