Home > Archive > Linux/Unix > December 2003 > Iptables anyone?





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author Iptables anyone?
mindmesh

2003-12-15, 4:42 pm

I setup one of my boxes as a firewall. Can't seem to get traffic to pass thru it. I'm trying to allow ssh on port 22 for the firewall and ssh port 24 on Mail server. Does this look right to you?

sudo iptables -L

Here is the command I ran:

sudo iptables -I FORWARD 1 -p tcp -i eth0 -o eth1 --sport 24 --dport 22 --destination 192.168.0.22/32 -j ACCEPT

Here's the rule in the iptables:

target prot opt source destination
ACCEPT tcp -- anywhere prodigy.mindmesh.local tcp spt:24 dpt:ssh


I've saved the config:

iptables-save > /etc/sysconfig/iptables

Restarted them:

/etc/init.d/iptables restart

Still won't let me thru. Any ideas?
Papiya

2003-12-15, 5:06 pm

# iptables -A INPUT -j ACCEPT -p tcp -s <client_ip/mask> --destination-port 22
mindmesh

2003-12-16, 8:30 am

Won't this put me into my firewall or stop me from getting into my firewall and allow me into the mail server. I've been thinking about it and i could just ssh to the firewall and then ssh to the mail server. Hmmmmm, decisions, decisions. Thank you Papiya.
Sponsored Links





Free Braindumps | MCSE braindumps software forum

Copyright 2003 - 2008 examnotes.net