Configure the wan interface:
gw-world:/> set Interface Ethernet wan
IP=10.0.0.1
Network=10.0.0.0/24
DefaultGateway=10.0.0.1
AutoSwitchRoute=Yes
Configure the lan interface:
gw-world:/> set Interface Ethernet lan
IP=10.0.0.2
Network=10.0.0.0/24
AutoSwitchRoute=Yes
Add the IP rule:
gw-world:/> add IPRule Action=Allow
Service=http
SourceInterface=lan
SourceNetwork=10.0.0.0/24
DestinationInterface=any
DestinationNetwork=all-nets
Name=http_allow
Web Interface
Configure the wan interface:
1. Go to: Network > Interfaces and VPN > Ethernet
2. Select the wan interface
3. Now enter:
• IP Address: 10.0.0.1
• Network: 10.0.0.0/24
• Default Gateway: 10.0.0.1
• Transparent Mode: Enable
4. Click OK
Configure the lan interface:
1. Go to: Network > Interfaces and VPN > Ethernet
2. Select the lan interface
3. Now enter:
• IP Address: 10.0.0.2
• Network: 10.0.0.0/24
• Transparent Mode: Enable
Chapter 4: Routing
387