Koozali.org: home of the SME Server

NAT 1-1

Tony

NAT 1-1
« on: March 19, 2004, 04:23:54 PM »
I really hope you can help me out, I have used SME 5.1.2 with NAT 1-1 for some time.
Now that server is down and I made a new and setup with SME 6.0 with 1-to-1-iptables.tar.gz
 
It will not work for me I have tryed now with 2 different servers.
I have chmod 700 both install and reset-all, chmod 700 makefrag.pl
Then edit config.txt in 2 different ways.
First
new_external_ip, internal_ip, allowable_network
195.67.133.131, 192.168.18.78, 0/0
Secund
# new_external_ip, internal_ip, allowable_network
195.67.133.131, 192.168.18.78, 0/0

msoulier

Re: NAT 1-1
« Reply #1 on: March 21, 2004, 06:26:36 AM »
Quote from: "Tony"
I really hope you can help me out, I have used SME 5.1.2 with NAT 1-1 for some time.
Now that server is down and I made a new and setup with SME 6.0 with 1-to-1-iptables.tar.gz


Not surprising. The firewall configuration changed considerably since 5.1.2. What is this package supposed to do?

Mike

adolfas

NAT 1-1
« Reply #2 on: October 28, 2004, 11:14:19 AM »
I get error:

Shutting down IP masquerade and firewall rules:         Done!

Enabling IP masquerading: /etc/rc.d/init.d/masq: NEW: command not found
iptables v1.2.5: Couldn't load target ipblock_inet':/lib/iptables/libipt_ipblock_inet.so: cannot open shared object file: No such file or directory

Try iptables -h' or 'iptables --help' for more information.
iptables v1.2.5: Couldn't load target ipblock_inet':/lib/iptables/libipt_ipblock_inet.so: cannot open shared object file: No such file or directory

Try iptables -h' or 'iptables --help' for more information.
iptables: No chain/target/match by that name
iptables: Table does not exist (do you need to insmod?)
done
Finished

what is wrong. Maybe it is for sme 5.x?

Offline frederikbay

  • ***
  • 41
  • +0/-0
NAT 1-1
« Reply #3 on: October 28, 2004, 03:16:50 PM »
Hi

Look at this link:

http://forums.contribs.org/index.php?topic=22414.0

got it to work fine, just one problem, when the server reboots the nat won't work and you have to execute these commands:

/sbin/e-smith/expand-template /etc/rc.d/init.d/masq

/etc/rc.d/init.d/masq restart

then it works fine again, have not had the time to figure why it won't work on reboot - but have not had the need to reboot it for quite some time  :-D

Hope it will help you on your way.

Frederik