This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision | |||
|
сервис_captive_portal [2014/06/16 12:12] val [Linux(Ubuntu)] |
сервис_captive_portal [2014/06/17 13:34] (current) val |
||
|---|---|---|---|
| Line 17: | Line 17: | ||
| conntrack -F | conntrack -F | ||
| + | </code> | ||
| + | |||
| + | ===== FreeBSD ===== | ||
| + | <code> | ||
| + | gate# cat /etc/pf.conf | ||
| </code><code> | </code><code> | ||
| - | root@gate:~# cat /var/www/index.php | + | rdr on em0 proto tcp from 192.168.X/24 to any port 80 -> 127.0.0.1 port 80 |
| + | |||
| + | nat on em1 from 192.168.X/24 to any -> 172.16.1.X | ||
| + | </code> | ||
| + | |||
| + | ===== Apache ===== | ||
| + | |||
| + | <code> | ||
| + | # cat index.php | ||
| </code><code> | </code><code> | ||
| <HTML> | <HTML> | ||