Find the answer to your Linux question:
Results 1 to 2 of 2
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1
    Linux User
    Join Date
    Jul 2004

    Redirect port to interface

    Hi, basically what I'm trying to do is to direct all outgoing connections on port 5678 to interface ppp0 (default interface is eth0).
    "I don't know what I'm running from
    And I don't know where I'm running to
    There's something deep and strange inside of me I see"

  2. #2
    You could do this with iptables i guess:

    iptables -A FORWARD --sport 5678 -i eth0 -o ppp0 -j ACCEPT

    Something like that i guess, not sure at all...can someone confirm or correct me?

Posting Permissions

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