https://wiki.archlinux.org/api.php?action=feedcontributions&user=Cercasi2&feedformat=atomArchWiki - User contributions [en]2024-03-28T10:58:37ZUser contributionsMediaWiki 1.41.0https://wiki.archlinux.org/index.php?title=Talk:Tunneling_SSH_through_HTTP_proxies_using_HTTP_Connect&diff=346482Talk:Tunneling SSH through HTTP proxies using HTTP Connect2014-11-26T10:09:43Z<p>Cercasi2: referring to error in netcat usage</p>
<hr />
<div>I think there is an error in the netcat section.<br />
<br />
A link is provided for gnu-netcat, but gnu-netcat doesn't supply the -X option. so the command does not work. The -X option is from the bsd netcat version. [[User:Cercasi2|Cercasi2]] ([[User talk:Cercasi2|talk]]) 10:09, 26 November 2014 (UTC)</div>Cercasi2https://wiki.archlinux.org/index.php?title=Internet_sharing&diff=83842Internet sharing2009-11-16T10:21:48Z<p>Cercasi2: /* Instructions */</p>
<hr />
<div>[[Category:Networking (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Internet_Share}}<br />
{{i18n_entry|Русский|Раздача_интернета}}<br />
{{i18n_entry|Italiano|Condivisione_connessione_internet}}<br />
{{i18n_links_end}}<br />
<br />
=Preface=<br />
<br />
Let's assume you have an internet connection and you want to share it. There are two main ways to do that.<br />
<br />
<pre><br />
internet pc1<br />
1. ----> |router| ---> |switch| --->-<<br />
pc2 ..etc<br />
<br />
internet<br />
2. ------> |pc1 (router)| --> pc2..etc<br />
</pre><br />
<br />
=Instructions=<br />
<br />
<br />
I'll explain the second way (it is easier and requires one less machine).<br />
<ol><br />
<li>Install a second network card to the first PC.</li><br />
<br />
<li>Connect the two PCs (using [http://en.wikipedia.org/wiki/Ethernet_crossover_cable crossover cable] or a [http://en.wikipedia.org/wiki/Network_switch switch]).</li><br />
<br />
<li>Let's assume that the first card (with the internet) is called '''''eth0''''' and the other one (for the sharing) is called '''''eth1'''''. (If those two keep switching at every boot read [http://wiki.archlinux.org/index.php/Udev#Mixed_Up_Devices.2C_Sound.2FNetwork_Cards_Changing_Order_Each_Boot this] ).</li><br />
<br />
<li>Configure the second network card with:<br />
:'''IP:''' 192.168.0.1<br />
:'''Netmask:''' 255.255.255.0<br />
or enter in a console (as root)<br />
<pre>ifconfig eth1 192.168.0.1 netmask 255.255.255.0<br />
ifconfig eth1 up</pre></li><br />
<li>Enter that same information in your '''/etc/rc.conf''' so that this card is set up correctly earch time your computer starts.<br />
'''Note''': If you use '''Wicd''', you don't do this.<br />
<pre>eth1="eth1 192.168.0.1 netmask 255.255.255.0"<br />
INTERFACES=(lo eth0 eth1)</pre></li><br />
<br />
<li>Enable packet forwarding. To do so, write a "'''1'''" to '''/proc/sys/net/ipv4/ip_forward''' with:<br />
<pre>echo 1 > /proc/sys/net/ipv4/ip_forward</pre></li><br />
<br />
<li>Then edit '''/etc/sysctl.conf''' and set 1 to the net.ipv4.ip_forward (It should be '''net.ipv4.ip_forward=1'''). This will make that change persistant after a reboot.</li><br />
<br />
<li>(If you haven't already) Install iptables and enter this rule (for the forwarding of the internet to the second PC) and save iptables.<br />
<pre>pacman -S iptables<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
/etc/rc.d/iptables save<br />
/etc/rc.d/iptables start</pre></li><br />
<li>Add iptables in your DAEMONS array in your /etc/rc.conf so that it is started each time.</li><br />
<br />
<li>Go to the second PC and set:<br />
:'''IP:''' 192.168.0.2<br />
:'''Netmask:''' 255.255.255.0<br />
:'''Gateway:''' 192.168.0.1<br />
:'''DNS:''' The same DNS as the first PC<br />
<br />
do this like this (eth0 is assumed to be your network interface on PC2 with which you are connected to PC1):<br />
<pre>ifconfig eth0 192.168.0.2 netmask 255.255.255.0<br />
ifconfig eth0 up<br />
route add default gw 192.168.0.1 eth0<br />
echo "nameserver <adr of nameserver>" >> /etc/resolv.conf<br />
</pre><br />
<br />
You can figure out the address of the nameserver by looking into the /etc/resolv.conf of PC1, if its internet connection is already established.</li></ol><br />
<br />
Note: Of course, this also works with a mobile broadband connection (usually called ppp0 on PC1)<br />
<br />
That's it! The second PC should now have internet.<br />
<br />
=See Also=<br />
*[[Sharing ppp connection with wlan interface]]<br />
*[[Simple stateful firewall HOWTO]]<br />
*[[NAT'ing firewall - Share your broadband connection]]</div>Cercasi2https://wiki.archlinux.org/index.php?title=Internet_sharing&diff=83841Internet sharing2009-11-16T10:20:06Z<p>Cercasi2: </p>
<hr />
<div>[[Category:Networking (English)]]<br />
[[Category:HOWTOs (English)]]<br />
<br />
{{i18n_links_start}}<br />
{{i18n_entry|English|Internet_Share}}<br />
{{i18n_entry|Русский|Раздача_интернета}}<br />
{{i18n_entry|Italiano|Condivisione_connessione_internet}}<br />
{{i18n_links_end}}<br />
<br />
=Preface=<br />
<br />
Let's assume you have an internet connection and you want to share it. There are two main ways to do that.<br />
<br />
<pre><br />
internet pc1<br />
1. ----> |router| ---> |switch| --->-<<br />
pc2 ..etc<br />
<br />
internet<br />
2. ------> |pc1 (router)| --> pc2..etc<br />
</pre><br />
<br />
=Instructions=<br />
<br />
<br />
I'll explain the second way (it is easier and requires one less machine).<br />
<ol><br />
<li>Install a second network card to the first PC.</li><br />
<br />
<li>Connect the two PCs (using [http://en.wikipedia.org/wiki/Ethernet_crossover_cable crossover cable] or a [http://en.wikipedia.org/wiki/Network_switch switch]).</li><br />
<br />
<li>Let's assume that the first card (with the internet) is called '''''eth0''''' and the other one (for the sharing) is called '''''eth1'''''. (If those two keep switching at every boot read [http://wiki.archlinux.org/index.php/Udev#Mixed_Up_Devices.2C_Sound.2FNetwork_Cards_Changing_Order_Each_Boot this] ).</li><br />
<br />
<li>Configure the second network card with:<br />
:'''IP:''' 192.168.0.1<br />
:'''Netmask:''' 255.255.255.0<br />
or enter in a console (as root)<br />
<pre>ifconfig eth1 192.168.0.1 netmask 255.255.255.0<br />
ifconfig eth1 up</pre></li><br />
<li>Enter that same information in your '''/etc/rc.conf''' so that this card is set up correctly earch time your computer starts.<br />
'''Note''': If you use '''Wicd''', you don't do this.<br />
<pre>eth1="eth1 192.168.0.1 netmask 255.255.255.0"<br />
INTERFACES=(lo eth0 eth1)</pre></li><br />
<br />
<li>Enable packet forwarding. To do so, write a "'''1'''" to '''/proc/sys/net/ipv4/ip_forward''' with:<br />
<pre>echo 1 > /proc/sys/net/ipv4/ip_forward</pre></li><br />
<br />
<li>Then edit '''/etc/sysctl.conf''' and set 1 to the net.ipv4.ip_forward (It should be '''net.ipv4.ip_forward=1'''). This will make that change persistant after a reboot.</li><br />
<br />
<li>(If you haven't already) Install iptables and enter this rule (for the forwarding of the internet to the second PC) and save iptables.<br />
<pre>pacman -S iptables<br />
iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE<br />
/etc/rc.d/iptables save<br />
/etc/rc.d/iptables start</pre></li><br />
<li>Add iptables in your DAEMONS array in your /etc/rc.conf so that it is started each time.</li><br />
<br />
<li>Go to the second PC and set:<br />
:'''IP:''' 192.168.0.2<br />
:'''Netmask:''' 255.255.255.0<br />
:'''Gateway:''' 192.168.0.1<br />
:'''DNS:''' The same DNS as the first PC</li></ol><br />
<br />
do this like this (eth0 is assumed to be your network interface on PC2 with which you are connected to PC1):<br />
<pre>ifconfig eth0 192.168.0.2 netmask 255.255.255.0<br />
ifconfig eth0 up<br />
route add default gw 192.168.0.1 eth0<br />
echo "nameserver <adr of nameserver>" >> /etc/resolv.conf<br />
</pre><br />
<br />
You can figure out the address of the nameserver by looking into the /etc/resolv.conf of PC1, if the internet connection is already established.<br />
<br />
Note: Of course, this also works with a mobile broadband connection (usually called ppp0 on PC1)<br />
<br />
That's it! The second PC should now have internet.<br />
<br />
=See Also=<br />
*[[Sharing ppp connection with wlan interface]]<br />
*[[Simple stateful firewall HOWTO]]<br />
*[[NAT'ing firewall - Share your broadband connection]]</div>Cercasi2https://wiki.archlinux.org/index.php?title=Talk:NetworkManager&diff=62612Talk:NetworkManager2009-02-19T10:38:40Z<p>Cercasi2: /* dbus */</p>
<hr />
<div>== dbus ==<br />
<br />
"Also check that [[HAL]] is installed, and loaded as a daemon in rc.conf. You may have to enable dbus as a daemon as well, or Networkmanager may crash. "<br />
<br />
shouldn't dbus be loaded automatically by hal? ("When HAL initializes it will check for the presence of D-Bus and load it automatically. If you have dbus in your list of daemons, remove it, since it can cause problems." - quoted from [[HAL]] page)<br />
is it necessary to specify it anyway so that NM won't crash?<br />
<br />
pikiweb<br />
<br />
== 3g ==<br />
Has anybody managed to set up 3g connectivity?<br />
When I click on the broadband connection icon, I'm getting two warnings, but nothing happens:<br />
<br />
(nm-applet:2719): Warning: **: _nm_object_get_property: Error getting 'State' for /org/freedesktop/NetworkManager/ActiveConnection/2: Method "Get" with signature "ss" on interface "org.freedesktop.DBus.Properties" doesn't exist<br />
(same for 'Default')<br />
nm-tool reports:<br />
<br />
- Device: tts/USB0<br />
Type: Mobile Broadband (GSM)<br />
Driver: option<br />
State: disconnected<br />
Default: no<br />
<br />
Capabilities<br />
Supported: yes<br />
<br />
any ideas?</div>Cercasi2