Assign port dedicatedly against an interface !
Dear Friends ,
I am using RHEL 5 . In my Linux Box i have two Lan cards (eth0 and eth1) .
"eth0" is connected with network 192.168.10.0 and "eth1" is connected with network 192.168.11.0 . Both Network are inter connected via routing .
Now I want a situation where , I want to dedicatedly assign some port numbers against a lan card . Like eth0 will be assigned for ssh (22) and eth1 is assigned for telnet (23) . so that ,
when a user connect to 22 port then he/she is connected to the server through eth0 , and when a user connect 23 port then he/she is connected to the server through eth1.
Is it possible to do using iptables or other ?
Waiting for kind reply ... ...