Hi ,
iam sorry but i didnt get ur needs. So i assume that u have two NIC's and that one of the NIC's has two IP address binded ( thru ip aliasing ). My answers are based on this assumptions.
1. If u want packets coming in from a external host with ip a.b.c.d to be redirected to another internal LAN ip address ( or ur aliased ip address ) ..... for this u need iproute2 util ..... basically used for bandwidth shapping Quality of Service ( QoS ), CBQ . There are numerous howto's and tutorials for accomplishing this ... search on
www.google.com with the keywords "bandwidth shaping", QoS, CBQ, iproute2, etc.
But before rushing in for QoS solution please check out the functionality provided by iptables s/w ...... check out the following links :
http://www.linuxguruz.org/iptables/
check out all the scripts .... specially
http://www.linuxguruz.org/iptables/s...rewall_016.txt
since i havent used iptables so i dont know if it will accomplish ur tasks or not hence i gave the solution for CBQ .... but if u have to choose between iptables and iproute2 for simple needs of yours i will definately recommend iptables since its relatively simple to configure.
2. packets coming in from a external host with ip a.b.c.d on port
X to be redirected port Y can be accomplished by ipchains or iptables util.
hope this is what ur looking for. Pls do close this thread if ur task is accomplshed by posting a reply mentioning so.
regards,
xanthium.
