IP Forwarding
Dear NF:
I cannot get IPTABLES FORWARDing to work when the machines are
directly
connected via a twisted cable.
Does FORWARDing only work with a router between the machines in
question?
If not, how can I get it to work? I see the packets coming
into the box(ethereal)
but none going out.
Can someone give me a quick overview of how, at the kernel code
level,
how FORWARDing works and how to modify it to get two machines who are directly connected to work.
Jerry
Quoted 3 lines · Jerry Alexander
I cannot get IPTABLES FORWARDing to work when the machines are
directly
connected via a twisted cable.
What should be forwarded from where?
Quoted 2 lines
Does FORWARDing only work with a router between the machines in
question?
No, but it only works when YOU act as a router for something going from somewhere to somewhere else via you.
Quoted 3 lines
If not, how can I get it to work? I see the packets coming into the
box(ethereal)
but none going out.
Does it work if you don't load any iptables rules?
If not your basic networking is not properly set up/configured.
If it works without iptables then your iptables ruleset is not properly constructed, most likely dropping the traffic.
Regards
Henrik
did you enable ip forwarding ?
try "echo 1> /proc/sys/net/ipv4/ip_forward".
regards,
aseem.
Quoted 21 lines · Jerry Alexander
Dear NF:
I cannot get IPTABLES FORWARDing to work when the machines
are directly
connected via a twisted cable.
Does FORWARDing only work with a router between the machines
in question?
If not, how can I get it to work? I see the packets coming
into the box(ethereal)
but none going out.
Can someone give me a quick overview of how, at the kernel
code level,
how FORWARDing works and how to modify it to get two machines who are directly connected to work.Jerry
Signature · 1 line
The end is always good. If it's not good, it's not the end.