I apparently don't know what I am doing... I have read the docs, and searched for some guidance, but have not come up with any help yet....
Here is the scenario.... I have a firewall running on Gentoo, 2.4.26 kernel, all routing/netfilter stuff is compiled as module in kernel, iptables installed, using arno's firewall scripts.
What I am trying to do seems fairly basic, but I haven't found any guidance, and my efforts are failing...
I have a block of IP's from Sprint, 209.26.244.33/29. I have 2 servers inside the firewall that I would like to have accessible from the internet on an external fixed IP. Currently the internal network is on 192.168.1.0/24, the firewall is working, and I can ssh into the firewall, but would like to ssh into all the servers, and need web access to both also. I will try and diagram this, just to ellucidate. :)
----------- | pvc0: 209.26.250.74ptp209.26.250.73 pvc0:0 209.26.224.33 | Firewall Server | eth0: 192.168.1.1 | | -------------------------- Server1 192.168.1.2 | | Server 2: 192.168.1.3
Now, I would like to reference each server via an external IP ie Server1 = 209.26.224.34, Server2 = 209.26.224.35
Here is what I had added to the firewall script:
PHEONIX="192.168.1.192" STATIC_PHEONIX="209.26.224.34" ASTERISK="192.168.1.1" STATIX_ASTERISK="209.26.224.33"
# # all packets coming for STATIC_PHEONIX should go to PHEONIX #
/sbin/iptables -t nat -I PREROUTING 1 -p TCP -d $STATIC_PHEONIX -dport 80 -i $EXT_IF -o $INT_IF -j DNAT --to-destination $PHEONIX
/sbin/iptables -t nat -I PREROUTING 1 -p TCP -d $STATIC_PHEONIX -dport 22 -i $EXT_IF -o $INT_IF -j DNAT --to-destination $PHEONIX
# # All packets going out from PHEONIX should have correct source IP... #
/sbin/iptables -t nat -I POSTROUTING 1 -p TCP -s $PHEONIX -o pvc0 -j SNAT --to-source $STATIC_PHEONIX
and I still can't ping the addresses... I read something from suse.com website that talked about having the addresses aliased to the external address, so added ifconfig pvc0:1 209.26.224.34,
I am only working on one server here, as I figure, If I can get to one of the, I can get to either with the same/similar setup.
Guidance? Please help.
Michael...