iptables

Hi

I need help with an iptables configuration, this is what I have

server A
Server B
A and B are using different gateways

i am sending port 22 from A to B, I see the packages coming in B but B is not sending the package to internet. please give me some examples.