<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:media="http://search.yahoo.com/mrss/"><channel><title><![CDATA[bsnl3g - varkey]]></title><description><![CDATA[home]]></description><link>https://varkey.in/</link><image><url>https://varkey.in/favicon.png</url><title>bsnl3g - varkey</title><link>https://varkey.in/</link></image><generator>Ghost 2.19</generator><lastBuildDate>Sun, 07 Jun 2026 02:06:48 GMT</lastBuildDate><atom:link href="https://varkey.in/tag/bsnl3g/rss/" rel="self" type="application/rss+xml"/><ttl>60</ttl><item><title><![CDATA[How-To Configure Seagate FreeAgent Dockstar as a 3G Gateway]]></title><description><![CDATA[<!--kg-card-begin: markdown--><!--kg-card-begin: markdown--><p>This how-to explains how to configure a Seagate Dockstar running Debian to establish a 3G connection using a USB data card like the Huawei E122 / UMG181 etc and configure it to act as a gateway so that the internet can be shared with the other devices connected to the network.</p>]]></description><link>https://varkey.in/how-to-configure-seagate-freeagent-dockstar-as-a-3g-gateway/</link><guid isPermaLink="false">5b5ebac3027df73e972506cc</guid><category><![CDATA[3g gateway]]></category><category><![CDATA[bsnl]]></category><category><![CDATA[bsnl3g]]></category><category><![CDATA[dockstar]]></category><category><![CDATA[seagate dockstar]]></category><dc:creator><![CDATA[Vivek Thomas]]></dc:creator><pubDate>Sat, 26 Feb 2011 18:55:40 GMT</pubDate><content:encoded><![CDATA[<!--kg-card-begin: markdown--><!--kg-card-begin: markdown--><p>This how-to explains how to configure a Seagate Dockstar running Debian to establish a 3G connection using a USB data card like the Huawei E122 / UMG181 etc and configure it to act as a gateway so that the internet can be shared with the other devices connected to the network.</p>
<p>You need to have a Dockstar running Debian, if not check <a href="http://jeff.doozan.com/debian/">Jeff's site</a> on how to install Debian on your Seagate Dockstar.</p>
<p><strong><span style="text-decoration: underline;">Configuring the USB Modem and PPP Dialler</span></strong></p>
<p>First install the following packages using apt-get</p>
<ol>
	<li>usb-modeswitch</li>
	<li>usb-modeswitch-data</li>
	<li>ppp</li>
</ol>
<blockquote>apt-get install usb-modeswitch usb-modeswitch-data ppp</blockquote>
After that connect your 3G USB modem, and wait for few seconds. After that give the command 'dmesg' and check if you can see something like this
<blockquote>option 1-1.4:1.0: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB0
option 1-1.4:1.1: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB1
option 1-1.4:1.2: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB2
option 1-1.4:1.5: GSM modem (1-port) converter detected
usb 1-1.4: GSM modem (1-port) converter now attached to ttyUSB3</blockquote>
If you see similar lines saying 'modem attached to ttyUSBx', then the USB modem is detected fine.
<p>Now edit the file <em><strong>'/etc/ppp/peers/provider'</strong></em> and replace its contents with the following</p>
<pre escaped="true" lang="bash" line="1">/dev/ttyUSB0
modem
crtscts
noauth
defaultroute
noipdefault
nopcomp
noaccomp
novj
nobsdcomp
holdoff 10
usepeerdns
persist
lcp-echo-failure 2
lcp-echo-interval 5
nodeflate
maxfail 0
debug
connect "/usr/sbin/chat -v -f /etc/chatscripts/BSNL3G"</pre>
<p>After that edit the file <strong><em>'/etc/chatscripts/BSNL3G'</em></strong> and replace its contents with the following</p>
<pre escaped="true" lang="bash" line="1">ABORT 'BUSY'
ABORT 'NO CARRIER'
ABORT 'VOICE'
ABORT 'NO DIALTONE'
ABORT 'NO DIAL TONE'
ABORT 'NO ANSWER'
ABORT 'DELAYED'
REPORT CONNECT
TIMEOUT 10
'' 'ATZ'
'OK-AT-OK' 'ATZ'
TIMEOUT 10
#'OK' 'ATZ'
#'OK' 'ATQ0 V1 E1 S0=0 &amp;amp;C1 &amp;amp;D2'
OK AT\^SYSCFG=14,2,2780380,0,1
'OK' 'AT+CGDCONT=1,"IP","bsnlnet"'
'OK' 'ATDT*99#'
TIMEOUT 30
CONNECT ''</pre>
<p>Now if everything works as expected you should be able to connect by giving the command '<strong><em>pon</em></strong>'. Try pinging Google.com to verify if the internet is working. You can disconnect by giving the command <strong><em>'poff'</em></strong></p>
<p>To make the dock connect to the internet automatically on start-up, append the following to the <strong><em>'/etc/network/interfaces'</em></strong> file</p>
<pre escaped="true" lang="bash" line="1">
auto ppp0
iface ppp0 inet ppp
provider provider</pre>
<p>Reboot the Dockstar to verify if everything is working fine.</p>
<p><strong><span style="text-decoration: underline;">Configuring the Dockstar to act as a Gateway</span></strong></p>
<p>If you do not have iptables installed, install it with the following command</p>
<blockquote>apt-get install iptables</blockquote>
Now edit '<strong>/etc/sysctl.conf'</strong> and change the line that says '<strong>net.ipv4.ip_forward = 0'</strong> to '<strong>net.ipv4.ip_forward = 1' </strong>and also make sure that the line is uncommented.
<p>After that execute the following commands</p>
<pre escaped="true" lang="bash" line="1">/sbin/iptables -t nat -A POSTROUTING -o ppp0 -j MASQUERADE
/sbin/iptables -A FORWARD -i ppp0 -o eth0 -m state --state RELATED,ESTABLISHED -j ACCEPT
/sbin/iptables -A FORWARD -i eth0 -o ppp0 -j ACCEPT</pre>
<p>Now we need to get these rules loaded at boot time, for that follow the steps below</p>
<blockquote>iptables-save &gt; /etc/firewall.conf</blockquote>
Edit the file <strong><em>'/etc/network/if-up.d/iptables' </em></strong>and add the following
<pre escaped="true" lang="bash" line="1">
#!/bin/sh
iptables-restore < /etc/firewall.conf</pre>
Next step is to make the file executable
<blockquote>chmod +x /etc/network/if-up.d/iptables
<p>reboot</p></blockquote><br>
That's it, now your Seagate Dockstar will act as a gateway and you can share your 3G internet connection with the other devices on your network. <strong><em>Make sure you manually set the Gateway IP address to that of the Dockstar in each device. </em></strong><p></p>
<p>If there is any problem leave a comment.</p>
<!--kg-card-end: markdown--><!--kg-card-end: markdown-->]]></content:encoded></item></channel></rss>