PDA

View Full Version : IPTABLES - Allow Internal HOST with Public IP through Firewall



redmondmj@gmail.com
06-30-08, 03:19 PM
Hello:

I am new to IPTABLES. I have setup and Ubuntu 8.04 Server running
ebox. It is running DHCP (192.168.1.0-250), NAT, DNS, Squid
Transparent Proxy. All of the firewall rules were configured using
ebox's firewall module.

Basic setup:
Eth0 - external interface 12.32.12.2 (GW 12.32.12.1) - Internet

Eth1 - internal Interface 192.168.1.254

I have a host on the internal network that I need to assign a public
IP to allow unrestricted access to the internet. 12.32.12.3...

I have been told that ebox can not configure this for me and I have no
idea what I'm doing in IPTABLES. From what I have read it looks like I
should be able to setup something in PREROUTING and POSTROUTING to
allow me to do this?

Any help would be greatly appreciated!!!

Thanks,

Ansgar -59cobalt- Wiechers
06-30-08, 05:50 PM
redmondmj@gmail.com wrote:
> I am new to IPTABLES. I have setup and Ubuntu 8.04 Server running
> ebox. It is running DHCP (192.168.1.0-250), NAT, DNS, Squid
> Transparent Proxy. All of the firewall rules were configured using
> ebox's firewall module.
>
> Basic setup:
> Eth0 - external interface 12.32.12.2 (GW 12.32.12.1) - Internet
>
> Eth1 - internal Interface 192.168.1.254
>
> I have a host on the internal network that I need to assign a public
> IP to allow unrestricted access to the internet. 12.32.12.3...

You don't need a public IP address for unrestricted access to the
Internet. Who told you such nonsense?

Please describe what exactly you're trying to achieve, and also post
your current ruleset.

cu
59cobalt
--
"If a software developer ever believes a rootkit is a necessary part of
their architecture they should go back and re-architect their solution."
--Mark Russinovich