I'm primarily a
User Developer Sysadmin A mixture Something else entirely .. ( 687 votes ~ 10 comments )
You are not currently logged in. If you do not have a user account then please consider creating one and logging in before you post your comment. This will allow you to track replies to your comment, and take part in the site much more freely.
To add your comment, fill in all the boxes below and then preview it to make sure you're happy with the way that it looks.
This is the comment you were replying to, attached to the article Setting up a simple Debian gateway:
#56 Re: Setting up a simple Debian gateway Posted by Anonymous (69.251.xx.xx) on Fri 22 Feb 2008 at 18:14 ok, so i'm a newb at linux... (i'm using Debian BTW) i was looking for a gui version to configure it as a gateway but i guess i'll need to set it up command line style. i've followed the tutorials on a few different pages now, completely reversing them when I've given up and moved onto the next... so now I'm on to this and I tried the ipmasq utility... so far, no luck at all. I am using debian to replace my winbloze machine as my gateway/firewall and I haven't yet been able to make the debian machine even talk to my network as the dns. I have ipmasq installed (while my eth0 is my internet connection and eth1 is my internal network) and I have the 00-firewall script in the if-up.d directory as the following: #!/bin/sh PATH=/usr/sbin:/sbin:/bin:/usr/bin # # delete all existing rules. # iptables -F iptables -t nat -F iptables -t mangle -F iptables -X # Always accept loopback traffic iptables -A INPUT -i lo -j ACCEPT # Allow established connections, and those not coming from the outside iptables -A INPUT -m state --state ESTABLISHED,RELATED -j ACCEPT iptables -A INPUT -m state --state NEW -i ! eth0 -j ACCEPT iptables -A FORWARD -i eth0 -o eth1 -m state --state ESTABLISHED,RELATED -j ACCEPT # Allow outgoing connections from the LAN side. iptables -A FORWARD -i eth1 -o eth0 -j ACCEPT # Masquerade. iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE # Don't forward from the outside to the inside. iptables -A FORWARD -i eth0 -o eth1 -j REJECT # Enable routing. echo 1 > /proc/sys/net/ipv4/ip_forward When I first installed Debian on this machine, it was routed through my Win. gateway and was set up on the network and connected fine, I did all of my setup and install and then swapped the machines (so the Debian is the gateway), changing my IP for internal to static 192.168.0.1 and the external to DHCP and tried a few means that i found online to get it to work - nope - set everything back the way it was, then followed the original steps on this page with dnsmasq and some other pages on configuring that with no avail, then uninstalled the dnsmasq and tried the ipmasq... again, no success. Does anyone have any idea on what I should do from here? Maybe i missed something, or some settings i was unaware of changed throughout the process? I am growing to really like Debian, but it's def. different to get used to the configuration process. Any help would be greatly appreciated. -thanks. Joe
Posting Format:
Inappropriate comments will be removed.
Some help on entry formatting is available
Username:
Password:
[ Advanced Login ]
Register Account