<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>postIt &#187; network</title>
	<atom:link href="https://lakm.us/postit/tag/network/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/postit</link>
	<description>Post-It sticky notes with PasteBin sense</description>
	<lastBuildDate>Thu, 02 Jan 2025 01:33:57 +0000</lastBuildDate>
	<language>en-US</language>
		<sy:updatePeriod>hourly</sy:updatePeriod>
		<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=4.0.18</generator>
	<item>
		<title>Tunnel remote port 8383 to become availa &#8230;</title>
		<link>https://lakm.us/postit/2023/11/tunnel-remote-port-8383-to-become-availa/</link>
		<comments>https://lakm.us/postit/2023/11/tunnel-remote-port-8383-to-become-availa/#comments</comments>
		<pubDate>Tue, 28 Nov 2023 03:48:26 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2023/11/tunnel-remote-port-8383-to-become-availa/</guid>
		<description><![CDATA[Tunnel remote port 8383 to become available as localhost:5433 ssh -L 5433:localhost:8383 some-user@some-server]]></description>
				<content:encoded><![CDATA[<p>Tunnel remote port 8383 to become available as localhost:5433</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh</span> <span style="color: #660033;">-L</span> <span style="color: #000000;">5433</span>:localhost:<span style="color: #000000;">8383</span> some-user<span style="color: #000000; font-weight: bold;">@</span>some-server</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2023/11/tunnel-remote-port-8383-to-become-availa/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change internet default route in Mac OS  &#8230;</title>
		<link>https://lakm.us/postit/2013/04/change-internet-default-route-in-mac-os/</link>
		<comments>https://lakm.us/postit/2013/04/change-internet-default-route-in-mac-os/#comments</comments>
		<pubDate>Thu, 11 Apr 2013 03:29:58 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[Mac OSX]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[Unix]]></category>

		<guid isPermaLink="false">http://lakm.us/postit/2013/04/change-internet-default-route-in-mac-os/</guid>
		<description><![CDATA[Change internet default route in Mac OS X to USB HSDPA modem stick with LAN&#8217; certain subnet routed via a gateway in WiFi (en1). In my case DNS will go with the modem interface setting remain routed via USB modem stick before routing: $ netstat -nr &#160; Routing tables &#160; Internet: Destination Gateway Flags Refs [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Change internet default route in Mac OS X to USB HSDPA modem stick with LAN&#8217; certain subnet routed via a gateway in WiFi (<code>en1</code>).</p>
<p>In my case DNS will go with the modem interface setting remain routed via USB modem stick</p>
<p><em>before routing</em>:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-nr</span>
&nbsp;
Routing tables
&nbsp;
Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
default            10.64.64.64        UGSc           <span style="color: #000000;">72</span>      <span style="color: #000000;">137</span>    ppp0
default            <span style="color: #c20cb9; font-weight: bold;">link</span><span style="color: #666666; font-style: italic;">#4             UCSI            0        0     en0</span>
default            10.1.1.1          UGScI           <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>     en1</pre></td></tr></table></div>

<p>Delete and add routes (desired LAN subnet 192.168.1.0/24:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> route <span style="color: #660033;">-n</span> delete default 10.1.1.1
<span style="color: #c20cb9; font-weight: bold;">sudo</span> route <span style="color: #660033;">-n</span> add default 10.64.64.64
<span style="color: #c20cb9; font-weight: bold;">sudo</span> route <span style="color: #660033;">-n</span> add 192.168.1.0<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span> 10.1.1.1</pre></td></tr></table></div>

<p><em>after routing</em>:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-nr</span>
&nbsp;
Routing tables
&nbsp;
Internet:
Destination        Gateway            Flags        Refs      Use   Netif Expire
default            10.64.64.64        UGSc           <span style="color: #000000;">21</span>        <span style="color: #000000;">0</span>    ppp0
default            <span style="color: #c20cb9; font-weight: bold;">link</span><span style="color: #666666; font-style: italic;">#4             UCSI            0        0     en0</span>
default            10.1.1.1          UGScI           <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>     en1
10.1.1<span style="color: #000000; font-weight: bold;">/</span><span style="color: #000000;">24</span>         <span style="color: #c20cb9; font-weight: bold;">link</span><span style="color: #666666; font-style: italic;">#5             UCS             6        0     en1</span>
...
192.168.1         10.1.1.1          UGSc            <span style="color: #000000;">0</span>        <span style="color: #000000;">0</span>     en1
...</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2013/04/change-internet-default-route-in-mac-os/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Socket monitoring by watching receive an &#8230;</title>
		<link>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/</link>
		<comments>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/#comments</comments>
		<pubDate>Wed, 10 Aug 2011 08:03:50 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[command]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[scan]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=136</guid>
		<description><![CDATA[Socket monitoring by watching receive and send queue every 5 seconds $ while true; do netstat -tn; sleep 5; clear; done Result: &#160; Active Internet connections &#40;w/o servers&#41; Proto Recv-Q Send-Q Local Address Foreign Address State tcp 0 0 10.238.133.152:43941 98.136.48.103:5050 ESTABLISHED tcp 1 0 10.238.133.152:42541 8.27.254.249:80 CLOSE_WAIT tcp 1 0 10.238.133.152:34355 184.73.222.16:80 CLOSE_WAIT tcp [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Socket monitoring by watching receive and send queue every 5 seconds</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span><span style="color: #000000; font-weight: bold;">while</span> <span style="color: #c20cb9; font-weight: bold;">true</span>; <span style="color: #000000; font-weight: bold;">do</span> <span style="color: #c20cb9; font-weight: bold;">netstat</span> <span style="color: #660033;">-tn</span>; <span style="color: #c20cb9; font-weight: bold;">sleep</span> <span style="color: #000000;">5</span>; <span style="color: #c20cb9; font-weight: bold;">clear</span>; <span style="color: #000000; font-weight: bold;">done</span></pre></td></tr></table></div>

<p>Result:</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">&nbsp;
Active Internet connections <span style="color: #7a0874; font-weight: bold;">&#40;</span>w<span style="color: #000000; font-weight: bold;">/</span>o servers<span style="color: #7a0874; font-weight: bold;">&#41;</span>
Proto Recv-Q Send-Q Local Address           Foreign Address         State
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">43941</span>    98.136.48.103:<span style="color: #000000;">5050</span>      ESTABLISHED
tcp        <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">42541</span>    8.27.254.249:<span style="color: #000000;">80</span>         CLOSE_WAIT
tcp        <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">34355</span>    184.73.222.16:<span style="color: #000000;">80</span>        CLOSE_WAIT
tcp        <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span> 10.238.133.152:<span style="color: #000000;">43210</span>    199.59.148.87:<span style="color: #000000;">443</span>       ESTABLISHED
tcp        <span style="color: #000000;">0</span>    <span style="color: #000000;">229</span> 10.238.133.152:<span style="color: #000000;">43209</span>    199.59.148.87:<span style="color: #000000;">443</span>       ESTABLISHED</pre></td></tr></table></div>

<p>This is to emulate combination of <code>watch</code> and <code>ss</code> in Solaris, more or less same result</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666;">$ </span><span style="color: #c20cb9; font-weight: bold;">watch</span> <span style="color: #660033;">-n</span> <span style="color: #000000;">5</span> ss <span style="color: #660033;">-t</span></pre></td></tr></table></div>


<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;">State      Recv-Q Send-Q      Local Address:Port          Peer Address:Port
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">36045</span>       74.125.224.250:https
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">36044</span>       74.125.224.250:https
CLOSE-WAIT <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">59622</span>      174.129.233.179:www
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">43941</span>        98.136.48.103:mmcc
CLOSE-WAIT <span style="color: #000000;">38</span>     <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">49300</span>        199.59.148.87:https
ESTAB      <span style="color: #000000;">0</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">33626</span>       74.125.224.191:https
CLOSE-WAIT <span style="color: #000000;">1</span>      <span style="color: #000000;">0</span>          10.238.133.152:<span style="color: #000000;">37621</span>        208.46.163.81:www</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2011/08/socket-monitoring-by-watching-receive-an/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Check route/gateway in Solaris

# nets &#8230;</title>
		<link>https://lakm.us/postit/2010/10/check-routegateway-in-solaris-nets/</link>
		<comments>https://lakm.us/postit/2010/10/check-routegateway-in-solaris-nets/#comments</comments>
		<pubDate>Wed, 06 Oct 2010 05:06:18 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[router]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=104</guid>
		<description><![CDATA[Check route/gateway in Solaris # netstat -rn &#160; Routing Table: IPv4 Destination Gateway Flags Ref Use Interface -------------------- -------------------- ----- ----- ---------- --------- default 192.168.40.1 UG 1 0 192.168.40.0 192.168.40.91 U 1 2 e1000g2 224.0.0.0 192.168.40.91 U 1 0 e1000g2 127.0.0.1 127.0.0.1 UH 1 0 lo0 If no /etc/defaultrouter set (file not exist), booting will [&#8230;]]]></description>
				<content:encoded><![CDATA[<p>Check route/gateway in Solaris</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># netstat -rn</span>
&nbsp;
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
<span style="color: #660033;">--------------------</span> <span style="color: #660033;">--------------------</span> <span style="color: #660033;">-----</span> <span style="color: #660033;">-----</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">---------</span>
default              192.168.40.1         UG        <span style="color: #000000;">1</span>          <span style="color: #000000;">0</span>
192.168.40.0         192.168.40.91        U         <span style="color: #000000;">1</span>          <span style="color: #000000;">2</span> e1000g2
224.0.0.0            192.168.40.91        U         <span style="color: #000000;">1</span>          <span style="color: #000000;">0</span> e1000g2
127.0.0.1            127.0.0.1            UH        <span style="color: #000000;">1</span>          <span style="color: #000000;">0</span> lo0</pre></td></tr></table></div>

<p>If no <code>/etc/defaultrouter</code> set (file not exist), booting will set no default gateway as</p>

<div class="wp_syntax"><table><tr><td class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># netstat -rn</span>
&nbsp;
Routing Table: IPv4
  Destination           Gateway           Flags  Ref     Use     Interface
<span style="color: #660033;">--------------------</span> <span style="color: #660033;">--------------------</span> <span style="color: #660033;">-----</span> <span style="color: #660033;">-----</span> <span style="color: #660033;">----------</span> <span style="color: #660033;">---------</span>
192.168.40.0         192.168.40.91        U         <span style="color: #000000;">1</span>          <span style="color: #000000;">2</span> e1000g2
224.0.0.0            192.168.40.91        U         <span style="color: #000000;">1</span>          <span style="color: #000000;">0</span> e1000g2
127.0.0.1            127.0.0.1            UH        <span style="color: #000000;">1</span>          <span style="color: #000000;">0</span> lo0</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/10/check-routegateway-in-solaris-nets/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Single permanent IP (up on boot) on one  &#8230;</title>
		<link>https://lakm.us/postit/2010/06/single-permanent-ip-up-on-boot-on-one/</link>
		<comments>https://lakm.us/postit/2010/06/single-permanent-ip-up-on-boot-on-one/#comments</comments>
		<pubDate>Wed, 02 Jun 2010 04:47:44 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=98</guid>
		<description><![CDATA[Single permanent IP (up on boot) on one interface: /etc/inet/hosts content: # # Internet host table # ::1 localhost 127.0.0.1 localhost 192.168.40.91 cxnode01 .cxnode01 loghost 192.168.40.92 cxnode02 The interface where you want to bind the above ip: /etc/hostname.e1000g2 containing cxnode01]]></description>
				<content:encoded><![CDATA[<p>Single permanent IP (up on boot) on one interface:<br />
</code>/etc/inet/hosts</code> content:<br />
<code>#<br />
# Internet host table<br />
#<br />
::1     localhost<br />
127.0.0.1       localhost<br />
<b>192.168.40.91   cxnode01</b>        .cxnode01       loghost<br />
192.168.40.92   cxnode02</code></p>
<p>The interface where you want to bind the above ip:  <code>/etc/hostname.<b>e1000g2</b></code> containing<br />
<code><b>cxnode01</b></code></p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/06/single-permanent-ip-up-on-boot-on-one/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Change hostname etc.


/etc/hosts
/e &#8230;</title>
		<link>https://lakm.us/postit/2010/04/change-hostname-etc-etchostse/</link>
		<comments>https://lakm.us/postit/2010/04/change-hostname-etc-etchostse/#comments</comments>
		<pubDate>Sun, 11 Apr 2010 13:13:17 +0000</pubDate>
		<dc:creator><![CDATA[Arif]]></dc:creator>
				<category><![CDATA[Uncategorized]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[network]]></category>
		<category><![CDATA[solaris]]></category>

		<guid isPermaLink="false">http://xp-racy.lan/postit/?p=62</guid>
		<description><![CDATA[Change hostname etc. /etc/hosts /etc/nodenames /etc/hostname.[device] /etc/defaultrouter /etc/defaultdomain /etc/nodename]]></description>
				<content:encoded><![CDATA[<p>Change hostname etc.</p>
<p><code><br />
/etc/hosts<br />
/etc/nodenames<br />
/etc/hostname.[device]<br />
/etc/defaultrouter<br />
/etc/defaultdomain<br />
/etc/nodename<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/postit/2010/04/change-hostname-etc-etchostse/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
