LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 11-09-2009, 03:13 PM   #1
dine
LQ Newbie
 
Registered: Oct 2009
Posts: 4

Rep: Reputation: 0
Question ssh login problems


Am having a strange problem. Am using this firewall to my ISP server, I cant access my Global IP in other network. Am using 1 block of Global IP to incoming, and another block of Global IP for customers and other server. What is the problem while i trying customers and other servers global IP in other network cant ssh login and pinging (it displays TTL time expired). Please give me an alternate firewall scripts.
dp
filter
# Firewall configuration

/sbin/depmod -a
/sbin/modprobe ip_tables
/sbin/modprobe ip_conntrack
/sbin/modprobe iptable_filter
/sbin/modprobe iptable_mangle
/sbin/modprobe iptable_nat
/sbin/modprobe ipt_LOG
/sbin/modprobe ipt_limit
/sbin/modprobe ipt_state
/sbin/modprobe ipt_owner
/sbin/modprobe ipt_REJECT
/sbin/modprobe ipt_MASQUERADE
/sbin/modprobe ip_conntrack_ftp
/sbin/modprobe ip_nat_ftp
/sbin/modprobe ip_conntrack_irc
/sbin/modprobe ip_nat_irc
echo "1" > /proc/sys/net/ipv4/ip_forward

iptables -P FORWARD DROP
iptables -A FORWARD -s 0/0 -p icmp -j ACCEPT
iptables -A FORWARD -s 192.168.0.0/24 -j ACCEPT
###############################################################################
# USER LIST
################################################################################



###############################################################################
iptables -A FORWARD -p udp -s 0/0 -m multiport --dports 500,4005,8000,543,50,51,1723,6565,1733,8181,5900,587,2525,80 -j ACCEPT
iptables -A FORWARD -p tcp -s 0/0 -m multiport --dports 500,4005,8000,543,50,51,1723,6565,8181,5900,587,2525,80 -j ACCEPT
###############################################################################

###############################################################################
##squid
#iptables -t nat -A PREROUTING -p TCP --dport 80 -j REDIRECT --to-ports 3128
#iptables -t nat -A PREROUTING -p TCP --dport 8080 -j REDIRECT --to-ports 3128
#iptables -t nat -A PREROUTING -p TCP --dport 80 -s 192.168.0.0/24 -j REDIRECT --to-ports 3128
###############################################################################
####################### DON'T DELETE ME #######################################
iptables -A FORWARD -p icmp -i eth1 -s 0/0 -j ACCEPT
iptables -t mangle -A PREROUTING -p tcp -s 0/0 --dport 80 -j TOS --set-tos Maximize-Throughput
iptables -A FORWARD -m state --state ESTABLISHED,RELATED -j ACCEPT
################################################################################
################################################################################
iptables -t nat -A POSTROUTING -p all -j SNAT --to-source *.*.*.*
###############################################################################

Thanking You,
With regards,
Dine...

Last edited by dine; 11-14-2009 at 01:48 AM. Reason: ssh login
 
Old 11-09-2009, 03:55 PM   #2
win32sux
LQ Guru
 
Registered: Jul 2003
Location: Los Angeles
Distribution: Ubuntu
Posts: 9,870

Rep: Reputation: 380Reputation: 380Reputation: 380Reputation: 380
dine, please don't resurrect dead threads (and don't hijack them either).

I've moved your post to a new thread in the Server forum.
 
Old 11-09-2009, 09:59 PM   #3
Wim Sturkenboom
Senior Member
 
Registered: Jan 2005
Location: Roodepoort, South Africa
Distribution: Ubuntu 12.04, Antix19.3
Posts: 3,794

Rep: Reputation: 282Reputation: 282Reputation: 282
Are you saying that you can ssh to your RHEL server locally but not from external (e.g. internet)?

If so,
* check firewall settings, hosts.deny and hosts.allow
* is there any other equipment involved in the connection that can block you

If not,
* please rephrase your problem as it's a bit difficult to understand.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
SSH Problem - Can't login using Hostname, can login using ip address jqweezy Linux - Networking 7 01-26-2009 02:21 PM
shell problems after ssh login Sephiroth Linux - Networking 0 05-30-2006 05:01 PM
SSH login veeruk101 Linux - Newbie 12 03-14-2006 09:17 AM
SSH problems with modem login CypherBeginner Linux - Newbie 5 02-20-2004 09:41 AM
ftp login -- ssh no login waffe Linux - General 4 12-27-2003 12:42 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:40 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration