Ask a Question related to Linux Setup, Configuration & Administration, Design and Development.
-
Luke #1
iptables trouble
Hi All,
Trying to get my firewall to route smtp to an internal mail server.
10.0(eth1) 192.168.x.x (external eth0)
| |
| |
---------------------
|
Network
|
10.0.x.x Mail server
iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
/etc/sysctrl net.ipv4.ip_forward= 1
iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 25 -j DNAT --to
10.0.x.x:25
The above allows all clients to share the internet connection + mail is
forwarded to the mail server 10.0.x.x
However no mail can be sent. Unless i drop the DNAT rule set. Everything
else is set to ACCEPT. So there must be some sort of loop happening.
I have tried lots of different FORWARD & OUTPUT rules but none that have
worked as yet. Has anyone an idea of a rule that will route mail out or a
better syntax for my DNAT rule that will not cause outgoing to queue.
Regards,
Luke
Luke Guest
-
iptables and FMS on RHEL V3
Sorry for awful english. After successfuly instalaltion of FMS on my Linux box, FMS works fine with iptables. ... -
regarding IPTables::IPv4
Hi to all I am using IPTables::IPv4 But i have problem when i run file iptable.pl than iptable rule is overwrite on previous iptable rule. I have... -
iptables question
Hi group I have got a problem. I have a firewall (floppyfw 2.05) and it forwards all traffic to port 25 and 80 to a certain computer in my... -
NIS and IPTABLES, what ports to allow ?
Hi, i am setting up NIS for the first time. I get it running by doing an iptables -F on both the client and the sercver, to simplify the setup.... -
iptables disturb DNS?
Hello! After weeks' frustration, I have worked out the vsftpd problem (Thanks to Vwakes!) by stop iptables. (/etc/init.d/iptables stop under... -
Wolfgang Fischer #2
Re: iptables trouble
On Wed, 03 Sep 2003 19:21:18 +0100, Luke wrote:
This rule belongs to OUTPUT, not to PREROUTING. As -i isn't possible in> Hi All,
>
> Trying to get my firewall to route smtp to an internal mail server.
>
>
> 10.0(eth1) 192.168.x.x (external eth0)
> | |
> | |
> ---------------------
> |
> Network
> |
> 10.0.x.x Mail server
>
> iptables -A POSTROUTING -t nat -o eth0 -j MASQUERADE
>
> /etc/sysctrl net.ipv4.ip_forward= 1
>
> iptables -t nat -A PREROUTING -p tcp -i eth1 --dport 25 -j DNAT --to
> 10.0.x.x:25
OUTPUT, you have to use -s (source address) instead.>
> The above allows all clients to share the internet connection + mail is
> forwarded to the mail server 10.0.x.x
>
> However no mail can be sent. Unless i drop the DNAT rule set. Everything
> else is set to ACCEPT. So there must be some sort of loop happening.
>
> I have tried lots of different FORWARD & OUTPUT rules but none that have
> worked as yet. Has anyone an idea of a rule that will route mail out or a
> better syntax for my DNAT rule that will not cause outgoing to queue.
>
> Regards,
>
> LukeWolfgang Fischer Guest



Reply With Quote

