<?xml version="1.0"?>
<?xml-stylesheet type="text/css" href="http://wiki.parspooyesh.com/skins/common/feed.css?303"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="fa">
		<id>http://wiki.parspooyesh.com/index.php?action=history&amp;feed=atom&amp;title=NG_IN_Registration_Setup</id>
		<title>NG IN Registration Setup - تاریخچهٔ ویرایش‌ها</title>
		<link rel="self" type="application/atom+xml" href="http://wiki.parspooyesh.com/index.php?action=history&amp;feed=atom&amp;title=NG_IN_Registration_Setup"/>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;action=history"/>
		<updated>2026-06-24T09:52:37Z</updated>
		<subtitle>تاریخچهٔ ویرایشهای صفحه در ویکی</subtitle>
		<generator>MediaWiki 1.19.0</generator>

	<entry>
		<id>http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=241&amp;oldid=prev</id>
		<title>Support در ‏۱۸ سپتامبر ۲۰۱۱، ساعت ۱۲:۳۲</title>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=241&amp;oldid=prev"/>
				<updated>2011-09-18T12:32:19Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-right'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;نسخهٔ ‏۱۸ سپتامبر ۲۰۱۱، ساعت ۱۲:۳۲&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۱:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۱:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;div dir=rtl lang=en&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&amp;lt;div dir=rtl lang=en&amp;gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;__TOC__&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;/div&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div dir=ltr lang=en&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Story===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Story===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Support</name></author>	</entry>

	<entry>
		<id>http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=240&amp;oldid=prev</id>
		<title>Support در ‏۱۸ سپتامبر ۲۰۱۱، ساعت ۱۲:۳۱</title>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=240&amp;oldid=prev"/>
				<updated>2011-09-18T12:31:55Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;table class='diff diff-contentalign-right'&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
				&lt;col class='diff-marker' /&gt;
				&lt;col class='diff-content' /&gt;
			&lt;tr valign='top'&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;→ نسخهٔ قدیمی‌تر&lt;/td&gt;
			&lt;td colspan='2' style=&quot;background-color: white; color:black;&quot;&gt;نسخهٔ ‏۱۸ سپتامبر ۲۰۱۱، ساعت ۱۲:۳۱&lt;/td&gt;
			&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۱:&lt;/td&gt;
&lt;td colspan=&quot;2&quot; class=&quot;diff-lineno&quot;&gt;سطر ۱:&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;[[Category:Network]]&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td colspan=&quot;2&quot;&gt;&amp;#160;&lt;/td&gt;&lt;td class='diff-marker'&gt;+&lt;/td&gt;&lt;td style=&quot;background: #cfc; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;&lt;ins style=&quot;color: red; font-weight: bold; text-decoration: none;&quot;&gt;&amp;lt;div dir=rtl lang=en&amp;gt;&lt;/ins&gt;&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;==Introduction==&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;tr&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Story===&lt;/div&gt;&lt;/td&gt;&lt;td class='diff-marker'&gt;&amp;#160;&lt;/td&gt;&lt;td style=&quot;background: #eee; color:black; font-size: smaller;&quot;&gt;&lt;div&gt;===Story===&lt;/div&gt;&lt;/td&gt;&lt;/tr&gt;
&lt;/table&gt;</summary>
		<author><name>Support</name></author>	</entry>

	<entry>
		<id>http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=239&amp;oldid=prev</id>
		<title>Support: صفحه‌ای جدید حاوی 'Category:Network ==Introduction== ===Story=== When an NG-IN User Connects for the first time, IBSng will automatically creates an account fo...' ایجاد کرد</title>
		<link rel="alternate" type="text/html" href="http://wiki.parspooyesh.com/index.php?title=NG_IN_Registration_Setup&amp;diff=239&amp;oldid=prev"/>
				<updated>2011-09-18T12:31:14Z</updated>
		
		<summary type="html">&lt;p&gt;صفحه‌ای جدید حاوی &amp;#039;&lt;a href=&quot;/index.php/%D8%B1%D8%AF%D9%87:Network&quot; title=&quot;رده:Network&quot;&gt;Category:Network&lt;/a&gt; ==Introduction== ===Story=== When an NG-IN User Connects for the first time, IBSng will automatically creates an account fo...&amp;#039; ایجاد کرد&lt;/p&gt;
&lt;p&gt;&lt;b&gt;صفحهٔ جدید&lt;/b&gt;&lt;/p&gt;&lt;div&gt;[[Category:Network]]&lt;br /&gt;
==Introduction==&lt;br /&gt;
===Story===&lt;br /&gt;
When an NG-IN User Connects for the first time, IBSng will automatically creates an account for user using his caller ID and group name mentioned in IN ras attributes. &lt;br /&gt;
Because Account is created automatically, there's no way ISP owner knows who the customer is, and where is his address. So we created a subsystem to force users to register their information after automatic creation of user.&lt;br /&gt;
&lt;br /&gt;
===How It Works===&lt;br /&gt;
The idea is using failed login username feature of IBSng, to redirect user to an special registration page. So basically every NG-IN user that does not have name, address, phone or cell phone attributes filled, WILL FAIL to login. After login failure they will virtually login using failed login username and we setup network rules so they'll see our registration page on every web page they attempt to see.&lt;br /&gt;
This feature is available with NG-IN module of B1.33 and afterwards.&lt;br /&gt;
[[image:ng_in_registration.JPG|thumb|Registration Form|none]]&lt;br /&gt;
&lt;br /&gt;
==IBSng Configuration==&lt;br /&gt;
As previously mentioned we need a failed user with multiple login and special ip pool, and set that as failed_login_username attribute of IN ras&lt;br /&gt;
&lt;br /&gt;
==Network Configuration==&lt;br /&gt;
A network rule needs to be setup, to redirect all failed user ip pool and dst port 80 traffic to IBSng server port 8000.&lt;br /&gt;
;Warning: Don't forget to exclude IBSng ip address from redirection rule&lt;br /&gt;
&lt;br /&gt;
A sample configuration for mikrotik, assuming IBSng ip address is 10.0.0.3 and failed user ip pool contains ip in range 192.168.20.0/24&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
 0   chain=dstnat dst-address=10.0.0.3 protocol=tcp dst-port=80 action=return&lt;br /&gt;
 1   chain=dstnat src-address=192.168.20.0/24 protocol=tcp dst-port=80 action=dst-nat to-addresses=10.0.0.3 to-ports=8000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Apache Configuration==&lt;br /&gt;
Apache needs to be configured to listen on port 8000 and redirect any request to registeration form&lt;br /&gt;
&lt;br /&gt;
===Listening on an extra port===&lt;br /&gt;
Add these lines to /etc/apache2/ports.conf&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
NameVirtualHost *:8000&lt;br /&gt;
Listen 8000&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Create IN Redirect Site===&lt;br /&gt;
Create in_redirect file under /etc/apache2/sites-available. Replace x.x.x.x with a ng in user accessible ip of IBSng server.&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
&amp;lt;VirtualHost *:8000&amp;gt;&lt;br /&gt;
        ServerAdmin webmaster@localhost&lt;br /&gt;
&lt;br /&gt;
        DocumentRoot /var/www/&lt;br /&gt;
        &amp;lt;Directory /&amp;gt;&lt;br /&gt;
                Options FollowSymLinks&lt;br /&gt;
                AllowOverride All&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
        &amp;lt;Directory /var/www/&amp;gt;&lt;br /&gt;
                Options Indexes FollowSymLinks MultiViews&lt;br /&gt;
                AllowOverride All&lt;br /&gt;
                Order allow,deny&lt;br /&gt;
                allow from all&lt;br /&gt;
        &amp;lt;/Directory&amp;gt;&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
        # Possible values include: debug, info, notice, warn, error, crit,&lt;br /&gt;
        # alert, emerg.&lt;br /&gt;
        LogLevel warn&lt;br /&gt;
&lt;br /&gt;
        CustomLog /var/log/apache2/access.log combined&lt;br /&gt;
&lt;br /&gt;
        RewriteEngine on&lt;br /&gt;
        RewriteRule .* http://x.x.x.x/IBSng-tg/addons/ng_in/failedUser [R]&lt;br /&gt;
&lt;br /&gt;
&amp;lt;/VirtualHost&amp;gt;&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
===Enabling Site and Modules===&lt;br /&gt;
Run&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
a2ensite in_redirect&lt;br /&gt;
a2enmod rewrite&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Customizing Registration Pages==&lt;br /&gt;
There are 3 template files located under /usr/local/IBSng/interface/turbogears/IBSng/ibsng/addons/ng_in/templates/ that can be tempered as customer wants. &lt;br /&gt;
#register.html: Main Registertion Page&lt;br /&gt;
#register_error.html: Error page shows when an unknown error occurs&lt;br /&gt;
#register_success.html: The page that will be shown after registration has been completed successfully&lt;br /&gt;
;Warning: Template files should be XHTML compliant&lt;/div&gt;</summary>
		<author><name>Support</name></author>	</entry>

	</feed>