I am trying to set up a firewall rule with iptables to forward all incoming telnet (23) connections to an internal IP (10.146.1.15/32).
Basically:
This doesn't work.
I know there is something very wrong here, and when someone explains it to me, I will facepalm, but right now I am too sleep-deprived to think straight.
Help!
Basically:
Code:
EIF="eth0"
IIF="eth1"
iptables -A FORWARD -i $EIF -p tcp -s 0/0 -d 10.146.1.15/32 --dport 23 -j ACCEPT
iptables -A FORWARD -o $EIF -p tcp -d 0/0 --dport 23 -j ACCEPT
This doesn't work.
I know there is something very wrong here, and when someone explains it to me, I will facepalm, but right now I am too sleep-deprived to think straight.
Help!