Changes between Version 13 and Version 14 of Internal/OpenFlow/miscUnix
- Timestamp:
- Jun 27, 2012, 3:41:19 PM (12 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
Internal/OpenFlow/miscUnix
v13 v14 11 11 * fixing garbled text (gcc) 12 12 [#net Network] Various networking-related things. 13 * NAT box methods 13 * Disabling SSH timeout 14 * NAT boxes 14 15 * with `ufw` 15 16 * with `pf` … … 156 157 = Networking-related odds and ends = #net 157 158 Various non-experimental network setups, usually done for convenience. 159 == Disabling SSH timeout == 160 source: http://docs.oseems.com/application/ssh/disable-timeout 161 162 You can essentially prevent SSH from timing out after a long idle period by adding the following to /etc/ssh/ssh_config : 163 {{{ 164 ServerAliveInterval 100 165 }}} 166 167 The above will make the client send a keepalive signal once every 100 seconds. Alternatively, you can modify server-side configs by adding the following to /etc/ssh/sshd_config : 168 {{{ 169 ClientAliveInterval 30 170 TCPKeepAlive yes 171 ClientAliveCountMax 99999 172 }}} 173 174 And restarting sshd: 175 {{{ 176 /etc/init.d/ssh restart 177 }}} 178 179 158 180 == NAT boxes. == 159 181 === with `ufw` === 160 182 source: https://nowhere.dk/articles/tip_nat_with_ubuntus_ufw_firewall 183 161 184 `ufw` is your standard Linux firewall, and comes with Ubuntu server edition. Turning a multi-interface Linux box into a router is a matter of the following steps: 162 185 1. configure IP forwarding … … 217 240 cups cupsys-driver-gutenprint libcupsys2 libcupsimage2 218 241 }}} 219 2. The default port that CUPS serves its admin GUI on is tcp:631 . You can see listening if you do `netstat -na -4 | grep 631`:242 2. The default port that CUPS serves its admin GUI on is tcp:631: 220 243 {{{ 221 244 $ netstat -na -4 | grep 631