Re: IPTables Prerouting



On Oct 2, 8:27 pm, buck <b...@xxxxxxxxxxx> wrote:
On Tue, 02 Oct 2007 13:18:43 -0700, "techjoh...@xxxxxxxxx"





<techjoh...@xxxxxxxxx> wrote:
I'm trying to use IPTables nat forwarding from public ip address to
internal subnet, but it's not relaying.

Public Ip address

207.202.xxx.xxx -> 10.0.0.100 (Linux router) -> 10.1.10.15 (Linux
machine.)

I can access the linux machine from 10.0.0.100's router.

I can access the Internet and the Linux router from the Linux machine.

I'm using the iptables command:

iptables -t nat -A PREROUTING -p tcp --dport 26 -j DNAT --to
10.1.10.15:26

I'm even disabled all of the DENY rules for forwarding.

--TJ

This works for me, so it will work for you. But I have to wonder what
is on port 26...

iptables -t nat -I PREROUTING -p tcp -d 207.202.x.y --dport 26 \
-j DNAT --to10.1.10.15:26
iptables -I FORWARD -p tcp -d 10.1.10.15 ---dport 26 -j ACCEPT

Since there is no defined service on TCP 26, you might not see
anything happen, but the iptables lines above are correct.
--
buck- Hide quoted text -

- Show quoted text -

Thanks for the response, but had to create an access-list and forward
a port from the PIX first.

--JP

.



Relevant Pages

  • Re: Relay attempts
    ... > more attempts to relay from my server. ... Relaying means someone's trying to abuse your machine to send mails ... a sure way to test it is to telnet to your machine on port 25 (smtp ...
    (microsoft.public.inetserver.iis.smtp_nntp)
  • Re: Making users to use port 587 for submission emails
    ... You can turn off relaying for everywhere except localhost, ... give any non-local clients a "relaying denied" error; ... to your port 25 - they are both acting as SMTP clients. ...
    (Fedora)
  • REPOST: IIS SMTP as a Alternative Port Mail Relay
    ... SMTP service up and want to use it to do the alternative port relaying. ... When I send a message to the SMTP server it ...
    (microsoft.public.exchange.admin)
  • REPOST: IIS SMTP as a Alternative Port Mail Relay
    ... SMTP service up and want to use it to do the alternative port relaying. ... When I send a message to the SMTP server it ...
    (microsoft.public.inetserver.iis)
  • REPOST: IIS SMTP as a Alternative Port Mail Relay
    ... SMTP service up and want to use it to do the alternative port relaying. ... When I send a message to the SMTP server it ...
    (microsoft.public.exchange.setup)