Find the answer to your Linux question:
Results 1 to 4 of 4
Hi All Been reading the IPTABLES forwarding example, however my case is different as there is no nat involved. I have two machines on a network both with public IP's ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Just Joined!
    Join Date
    Nov 2004
    Posts
    4

    Port forwarding - without NAT.


    Hi All

    Been reading the IPTABLES forwarding example, however my case is different as there is no nat involved.

    I have two machines on a network both with public IP's

    200.0.0.1 and 200.0.0.2

    I want to forward 443 on ppp0 interface on 200.0.0.1 to 443 on 200.0.0.2

    Code:
    /sbin/iptables -A INPUT -p tcp --dport 443 -j ACCEPT 
    /sbin/iptables -A FORWARD -p tcp -i ppp0 -d 200.0.0.2 --sport 443 --dport 443 -j ACCEPT
    Is not working for me.. I think its because I left out the PREROUTING.. though all examples I've seen use NAT.

    Thanks for any help

  2. #2
    Just Joined!
    Join Date
    Nov 2004
    Posts
    4
    Come on fella's - anyone have any idea?

  3. #3
    Just Joined!
    Join Date
    Nov 2004
    Posts
    4
    Hmm I'm actually think that you would still need NAT. Even though they both public IP's, since your still essentially "translating" packets.

  4. #4
    Just Joined!
    Join Date
    Nov 2004
    Posts
    4
    Bugger even if I try to use iptables I get:

    Code:
    iptables v1.2.9: can't initialize iptables table `NAT': Table does not exist (do you need to insmod?)
    Perhaps iptables or your kernel needs to be upgraded.
    BTW the distro is debian.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •