AUTHOR

IPtables question

This should allow incoming RDP connections to a microsoft fax server at .10 address right?

iptables -A PREROUTING -t nat -i eth0 -p tcp --dport 3389 -j DNAT --to 192.168.45.10:3389
iptables -A INPUT -p tcp -m state --state NEW --dport 3389 -i eth0 -j ACCEPT

(eth0 is configured as the WAN adapter, eth1 is running dhcpd and bind on the 192.168.45.0/24 space)
Smiley
get a firewall
are you trying to use iptables to allow the connection through to be routed or forwarded by something else?
SPUTNIK quote:
Smiley
get a firewall
But I was going to lock it down with my WAN ip address using:

iptables -A PREROUTING -t nat -i eth0 -p tcp --source xxx.xxx.xxx.xxx --dport 3389 -j DNAT --to 192.168.45.10:3389


This is a DMZ host/gateway
iptables -A FORWARD -i eth0 -d 192.168.1.1 -p tcp --dport 3389 -j ACCEPT
SPUTNIK quote:
are you trying to use iptables to allow the connection through to be routed or forwarded by something else?
I just want to allow access to RDP into this fax server for 2 users (not a terminal server) and nobody else.
replacing 1.1 with whatever
Pearl_Jammer quote:
I just want to allow access to RDP into this fax server for 2 users (not a terminal server) and nobody else.
is the fax server behind this linux box? why is the traffic going through it?
SPUTNIK quote:
is the fax server behind this linux box? why is the traffic going through it?
Yep, its behind the linux box. Its serving in place of a SOHO router with OpenVPN back to our data center. This is just a single remote location on a shoe-string budget that is the poor man's equivalent of an MPLS.
Pearl_Jammer quote:
Yep, its behind the linux box. Its serving in place of a SOHO router with OpenVPN back to our data center. This is just a single remote location on a shoe-string budget that is the poor man's equivalent of an MPLS.
then i'd be more inclined to run m0n0wall + NAT rather than iptables but that's my preference.
Running on a dell gx60 with a PXE boot Ubuntu image that sends clients into their terminal server at our datacenter. Smiley

But it works. Smiley
SPUTNIK quote:
then i'd be more inclined to run m0n0wall + NAT rather than iptables but that's my preference.
I'll check out m0n0wall. I'm still pretty green, and just helping with administration of an in-place network. We're migrating from Gentoo to Scientific Linux and they just moved this fax server to this remote location.
Pearl_Jammer quote:
I'll check out m0n0wall. I'm still pretty green, and just helping with administration of an in-place network. We're migrating from Gentoo to Scientific Linux and they just moved this fax server to this remote location.
if you want a firewall rundown, i'll be around tomorrow at around this time.
SPUTNIK quote:
if you want a firewall rundown, i'll be around tomorrow at around this time.
Smiley
NERDS
Hybris quote:
NERDS
Smiley
I still have to reference stuff like this all the time:

Quick reply

Sign in to post a message.
Smileys

Times shown in Eastern Time (ET).