ISP --> redhat 9 linux |
| --> redhat 9 linux (eth0: 192.168.1.2)
| --> redhat 9 linux (eth1: 59.144.124.58)
| --> redhat 9 linux (eth1: 192.168.100.149)
| --> redhat 9 linux (eth1: 10.32.138.42)
| --> Switch
| --> Trading Pc
this is my network diagram and below i am giving the ifconfig
eth0 Link encap:Ethernet HWaddr 00:08:A1:50:FE:12
inet addr:192.168.1.2 Bcast:192.168.1.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:32569460 errors:0 dropped:0 overruns:0 frame:0
TX packets:18503534 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:1218517006 (1162.0 Mb) TX bytes:1151927937 (1098.5 Mb)
Interrupt:11 Base address:0x800
eth1 Link encap:Ethernet HWaddr 00:50:BA:88:64:23
inet addr:59.144.124.58 Bcast:59.144.124.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:16132802 errors:0 dropped:0 overruns:0 frame:0
TX packets:16511583 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:3201863858 (3053.5 Mb) TX bytes:3055249671 (2913.7 Mb)
Interrupt:11 Base address:0xfc00
eth2 Link encap:Ethernet HWaddr 00:11:11:BC:6A:64
inet addr:192.168.100.149 Bcast:192.168.100.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:2690408 errors:0 dropped:0 overruns:0 frame:0
TX packets:43430 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:378724089 (361.1 Mb) TX bytes:5372180 (5.1 Mb)
Interrupt:11 Base address:0xd080 Memory:ff8fe000-ff8fe038
eth3 Link encap:Ethernet HWaddr 00:80:48

E:78:89
inet addr:10.32.138.40 Bcast:10.32.138.255 Mask:255.255.255.0
UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1
RX packets:0 errors:0 dropped:0 overruns:0 frame:169
TX packets:0 errors:13284 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:100
RX bytes:0 (0.0 b) TX bytes:2457018 (2.3 Mb)
Interrupt:9 Base address:0xdc00
lo Link encap:Local Loopback
inet addr:127.0.0.1 Mask:255.0.0.0
UP LOOPBACK RUNNING MTU:16436 Metric:1
RX packets:80891 errors:0 dropped:0 overruns:0 frame:0
TX packets:80891 errors:0 dropped:0 overruns:0 carrier:0
collisions:0 txqueuelen:0
RX bytes:12885730 (12.2 Mb) TX bytes:12885730 (12.2 Mb)
this is my redhat9 linux server the ip 59.144.124.58 (eth1) is our internet service provide ip,192.168.1.2 (eth0) is the ip of our backoffice lan network,192.168.100.149(eth2) is the ip of or trading network and 10.32.138.42 is i added in the server for 2 reasons
1.) my internet works on my local lan from the 192.168.1.2 ip,i want it also work from 10.32.138.42 ip,it means internal routing between internal ips.
2.) we have the bombay stock exchange router in our office which having the ip 10.32.138.1,when you give the router's ip address in client windows xp pc as a gateway then only the software works.Now i want to run the software from 10.32.138.42(eth3)ip,so i have to put 10.32.138.1 as a gateway in eth3 ifcfg-eth3 file.
this means the eth3(10.32.138.42)ip will do 2 work for me it gives me the internet packets and bse trading packets also
The bse trading software using following ports when i open from 10.32.138.1 (router's ip)here iam giving the netstat for the ports.
Active Connections
Proto Local Address Foreign Address State
TCP 10.32.138.55:1627 137.201.13.201:21 ESTABLISHED
TCP 10.32.138.55:1629 137.201.13.201:21 ESTABLISHED
TCP 127.0.0.1:1033 10.32.138.55:1627 ESTABLISHED
here the ip 137.201.13.201 is the ip of bse trading server and port 21
so please give any route and iptables command in detail
Thanks
Satish