Re: Changing outbound IP addresses

From: Benno (spamtrap_at_ans-net.nl)
Date: 12/25/04

  • Next message: Gabriel: "ssh : password against keys"
    Date: Sat, 25 Dec 2004 22:03:39 +0100
    
    

    <steve@hydramusic.net> wrote in message
    news:1104001634.509368.298720@z14g2000cwz.googlegroups.com...
    > Hello,
    >
    > I want to set up my router so any request going to any ip address on
    > port 25 instead goes to my internal SMTP server. IE, if I do a "telnet
    > 66.167.1.230 25", packets should instead be sent to "192.168.1.1 25".

    This is my iptables line to do the job.
    My local mail server is listening on port 25 and 2025 it will probably work
    on to-ports 25 also, i have not tested this.

    iptables -t nat -I PREROUTING -s 192.168.0.0/24 -p tcp --dport 25 -j
    REDIRECT --to-ports 2025

    Benno


  • Next message: Gabriel: "ssh : password against keys"

    Relevant Pages

    • Re: Internet Connect of FC6..
      ... I was just borrowing a co-workers' ADSL internet connection to get some updates and get XGL working... ... Please see to it that iptables is ... I can recommend the router as a GP solution that will give you a much ...
      (Fedora)
    • Re: internet sharing question
      ... tools that will do all the iptables stuff for you. ... Let's assume that eth0 is the interface pointing to the internet, ... same subnet as the eth1 interface on your router box. ... $MODPROBE iptable_filter ...
      (linux.redhat)
    • Re: Internal access to external website.
      ... router is not properly handling 'loopback processing'. ... external website from a workstation attached to the network by simply ... The server www.xxx.com at WebAdmin requires a username and password. ... All users including the admin are prompted with this request and when we ...
      (microsoft.public.windows.server.sbs)
    • iptables and masquerading: how to allow vpnc from lan
      ... I am running an old computer as a router using Debian Sarge and kernel ... IP masquerading) running iptables and doing masquerading. ... able to connect to an external VPN serverusing a VPN ...
      (Debian-User)
    • Re: Remote Assistance not working
      ... I tried one more time using the edit the request file ... I set prot forwarding in the router to 3389 and then ... >> I am unable to connect via Remote Assistance. ... >> exceptions for UPnP and Remote Assistance. ...
      (microsoft.public.windowsxp.work_remotely)