Annotated edit history of
MetaNetPublicIPs version 5 showing authors affecting page license.
View with all changes included.
Rev |
Author |
# |
Line |
4 |
NathanWard |
1 |
NathanWard is considering selling public IP addresses over the MetaNet. See NathanWard for details about that. |
|
|
2 |
|
1 |
NathanWard |
3 |
Several MetaNet users have public IP addresses routed to thier homes over the MetaNet, incl GavinGrieve and PerryLorier (I think), and now NathanWard. |
|
|
4 |
|
|
|
5 |
This is how I've done my routing: |
|
|
6 |
|
|
|
7 |
<verbatim> |
|
|
8 |
Internet ------- My public router (it has 202.6.75.0/24 to it at present) |
|
|
9 |
| || 192.168.230.192 |
|
|
10 |
| || |
|
|
11 |
ADSL line || |
|
|
12 |
A | || |
|
|
13 |
| B // |
|
|
14 |
|----- linux box ====/ |
|
|
15 |
| 192.168.230.255 |
|
|
16 |
PCs 202.6.75.211-222 |
|
|
17 |
10.230.255.10-250 |
3 |
NathanWard |
18 |
|
|
|
19 |
=== and || MetaNet |
|
|
20 |
--- and | 'Normal' network |
1 |
NathanWard |
21 |
</verbatim> |
|
|
22 |
|
|
|
23 |
* The linux box has 1 NIC in it, but really, 2 would be nicer. |
|
|
24 |
* Interface A has 10.230.255.1/24 and 202.6.75.209/24. |
|
|
25 |
* Interface B has 10.230.255.254/24. |
|
|
26 |
* The default route on the linux box points at 10.230.255.254. |
|
|
27 |
|
|
|
28 |
Now, you need to do this: |
|
|
29 |
<verbatim> |
|
|
30 |
echo -e "1\tpublic_to_world" >> /etc/iproute2/rt_tables |
|
|
31 |
ip route add 0.0.0.0/0 via 192.168.230.192 dev wan0 table public_to_world |
|
|
32 |
ip rule add from 202.6.75.208/28 to 192.168.0.0/16 pref 3000 lookup main |
|
|
33 |
ip rule add from 202.6.75.208/28 to 10.0.0.0/8 pref 4000 lookup main |
|
|
34 |
ip rule add from 202.6.75.208/28 to 202.6.75.208/28 pref 5000 lookup main |
|
|
35 |
ip rule add from 202.6.75.208/28 to 0.0.0.0/0 pref 6000 lookup public_to_world |
|
|
36 |
</verbatim> |
5 |
PerryLorier |
37 |
|
|
|
38 |
On some ISP's you don't need to be so complicated, turn off rp_filter, and just send them out your default gateway. Orcon for instance allow this. |