This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Last revision Both sides next revision | ||
сервис_captive_portal [2014/04/22 13:21] val |
сервис_captive_portal [2014/06/16 12:12] val [Linux(Ubuntu)] |
||
---|---|---|---|
Line 4: | Line 4: | ||
* Using iptables and PHP to create a captive portal ([[http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal]]) | * Using iptables and PHP to create a captive portal ([[http://www.andybev.com/index.php/Using_iptables_and_PHP_to_create_a_captive_portal]]) | ||
+ | ===== Linux(Ubuntu) ===== | ||
<code> | <code> | ||
root@gate:~# cat nat.sh | root@gate:~# cat nat.sh | ||
Line 18: | Line 19: | ||
</code><code> | </code><code> | ||
root@gate:~# cat /var/www/index.php | root@gate:~# cat /var/www/index.php | ||
+ | </code><code> | ||
<HTML> | <HTML> | ||
<HEAD> | <HEAD> | ||
Line 23: | Line 25: | ||
</HEAD> | </HEAD> | ||
<BODY> | <BODY> | ||
- | Адрес вашего компьютера: <?php echo $_SERVER['REMOTE_ADDR']; ?><br> | + | Address of your computer: <?php echo $_SERVER['REMOTE_ADDR']; ?><br> |
</BODY> | </BODY> | ||
</HTML> | </HTML> | ||
+ | </code> |