Hi All:
I would like to setup and NAT server (with 2 NIC).
Pls. HELP ME!!!
Q1. Are the 2 NICs O.K.?
The interfaces setting is:
eth0
Link encap:Ethernet HWaddr 00:40:26:5A:75:9A
inet addr:210.0.202.24 Bcast:210.0.202.127 Mask:255.255.255.128
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:611 errors:0 dropped:0 overruns:0 frame:0
TX packets:659 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:56484 (55.1 KiB) TX bytes:224497 (219.2 KiB)
Interrupt:9 Base address:0xe800
eth1
Link encap:Ethernet HWaddr 00:50:BF
B:8A:FA
inet addr:10.100.128.253 Bcast:10.255.255.255 Mask:255.0.0.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:128 errors:0 dropped:0 overruns:0 frame:0
TX packets:0 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:9631 (9.4 KiB) TX bytes:0 (0.0 b)
Interrupt:10 Base address:0xec00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:3924 Metric:1
RX packets:8 errors:0 dropped:0 overruns:0 frame:0
TX packets:8 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:560 (560.0 b) TX bytes:560 (560.0 b)
Q2. I find that there is no entry for loopback. Is it O.K.?
The routing table is:
Kernel IP routing table
Destination Gateway Genmask Flags Metric Ref Use Iface
210.0.202.0 0.0.0.0 255.255.255.128 U 0 0 0 eth0
10.0.0.0 0.0.0.0 255.0.0.0 U 0 0 0 eth1
0.0.0.0 210.0.202.1 0.0.0.0 UG 0 0 0 eth0
Main Question: Are my settings ready to use Ipchains or Iptables?
Thanks.