This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision Next revision Both sides next revision | ||
unix:gateway [2010/10/24 00:22] robm Updated for 1x NIC gateway PCs |
unix:gateway [2013/10/13 12:32] robm [IP Forwarding and NAT] |
||
---|---|---|---|
Line 32: | Line 32: | ||
lan -> switch | lan -> switch | ||
switch -> gateway: | switch -> gateway: | ||
- | gateway: | ||
} | } | ||
Line 40: | Line 39: | ||
^ Device ^ Notes ^ | ^ Device ^ Notes ^ | ||
| modem | ADSL modem with 1x phone line socket and 1x ethernet socket. Tends to get clogged for some reason (high latency, but connection stays up) | | | modem | ADSL modem with 1x phone line socket and 1x ethernet socket. Tends to get clogged for some reason (high latency, but connection stays up) | | ||
- | | gateway | Fast desktop PC with two network | + | | gateway | Linux host with *one* network |
| LAN | 4 or so PCs, Wii, Xbox, couple of Nintendo DS consoles, etc | | | LAN | 4 or so PCs, Wii, Xbox, couple of Nintendo DS consoles, etc | | ||
Line 228: | Line 227: | ||
< | < | ||
- | echo 0 > / | + | echo 0 | sudo tee / |
- | echo 0 > / | + | echo 0 | sudo tee / |
</ | </ | ||
- | Or permanently by adding the following to ''/ | + | **Update 2013-10:** This guide used to update ''/ |
+ | |||
+ | Or permanently by adding the following to ''/ | ||
< | < | ||
net/ | net/ | ||
net/ | net/ | ||
+ | net/ | ||
+ | net/ | ||
</ | </ | ||
See http:// | See http:// | ||
- | |||
==== DNS Service ==== | ==== DNS Service ==== | ||
< | < | ||
Line 465: | Line 468: | ||
flowid :1 | flowid :1 | ||
</ | </ | ||
+ | |||
+ | ==== Transparent Web Proxy ==== | ||
+ | |||
+ | < | ||
+ | |||
+ | Then edit ''/ | ||
+ | - the '' | ||
+ | - the '' | ||
+ | |||
+ | Restart Squid ('' | ||
+ | |||
+ | < | ||
===== The 1 NIC problem ===== | ===== The 1 NIC problem ===== |