Skip to contentSkip to conversation

fetchmail from intern

DISCUSSION Andreas Meyer 2 participants 2 messages Feb 17, 2003 – Feb 22, 2003

lore
Share & tools
lore
#0 lore raw

Hello!

Running fetchmail from the mailserver behind the firewall I have the problem to go to the WAN.

It works as long as I stay within the LAN.

iptables -t nat -A PREROUTING -p TCP --dport 110 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.1.75:110

But writing

iptables -t nat -A PREROUTING -p TCP --dport 110 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 0.0.0.0:110

I get a
kernel: martian destination 0.0.0.0 from 192.168.1.3, dev eth0

Must I install fetchmail on the firewall? Is this the only solution?

Signature · 4 lines
  Andreas Meyer

Object Class   Common Name   userPassword
posixAccount   andreas       {SSHA}hpyqObx1/BXbKFgXoqCayoGsvIgPYiVc
#1 lore raw
Quoted 5 lines · Andreas Meyer

Running fetchmail from the mailserver behind the firewall I have the problem to go to the WAN.

iptables -t nat -A PREROUTING -p TCP --dport 110 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 192.168.1.75:110

You might want to do SNAT or MASQUERADING in order to be able to access the WAN.

Quoted 7 lines

But writing

iptables -t nat -A PREROUTING -p TCP --dport 110 -m state --state NEW,ESTABLISHED,RELATED -j DNAT --to 0.0.0.0:110

I get a
kernel: martian destination 0.0.0.0 from 192.168.1.3, dev eth0

What do you want your outbound packets to look like? 0.0.0.0 ?

Signature · 1 line
wdyck at gmx dot net