Results 1 to 4 of 4

Thread: dropbear / ssh from wan

  1. #1

    dropbear / ssh from wan

    Hello all.

    Just upgraded to 1.9.2.7-4 and activated dropbear ssh deamon. Now i want to access it from wan, but i can not get it to work. (cause probably lack of knowledge in the iptables part)

    This is the rule i have in my iptables :

    Code:
    Chain INPUT (policy ACCEPT)
    target     prot opt source               destination         
    logdrop    all  --  anywhere             anywhere           state INVALID 
    ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED 
    ACCEPT     all  --  anywhere             anywhere           state NEW 
    ACCEPT     all  --  anywhere             anywhere           state NEW 
    ACCEPT     udp  --  anywhere             anywhere           udp spt:bootps dpt:bootpc 
    logdrop    all  --  anywhere             anywhere           
    
    Chain FORWARD (policy ACCEPT)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED 
    logdrop    all  --  anywhere             anywhere           state INVALID 
    ACCEPT     all  --  anywhere             anywhere           
    ACCEPT     tcp  --  anywhere             anywhere           tcp flags:SYN,RST,ACK/SYN limit: avg 1/sec burst 5 
    ACCEPT     tcp  --  anywhere             anywhere           tcp flags:FIN,SYN,RST,ACK/RST limit: avg 1/sec burst 5 
    ACCEPT     icmp --  anywhere             anywhere           limit: avg 1/sec burst 5 icmp echo-request 
    ACCEPT     udp  --  anywhere             192.168.1.2        udp dpt:11747 
    ACCEPT     tcp  --  anywhere             192.168.1.2        tcp dpt:12797 
    ACCEPT     tcp  --  anywhere             192.168.1.100      tcp dpt:6881 
    ACCEPT     udp  --  anywhere             192.168.1.100      udp dpt:6881 
    ACCEPT     tcp  --  anywhere             192.168.1.1        tcp dpt:ssh  
    
    Chain OUTPUT (policy ACCEPT)
    target     prot opt source               destination         
    
    Chain MACS (0 references)
    target     prot opt source               destination         
    ACCEPT     all  --  anywhere             anywhere           state RELATED,ESTABLISHED 
    logdrop    all  --  anywhere             anywhere           state INVALID 
    ACCEPT     all  --  anywhere             anywhere           
    
    Chain logaccept (0 references)
    target     prot opt source               destination         
    LOG        all  --  anywhere             anywhere           state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `ACCEPT ' 
    ACCEPT     all  --  anywhere             anywhere           
    
    Chain logdrop (4 references)
    target     prot opt source               destination         
    LOG        all  --  anywhere             anywhere           state NEW LOG level warning tcp-sequence tcp-options ip-options prefix `DROP' 
    DROP       all  --  anywhere             anywhere
    is this correct?

    thanks

  2. #2
    Join Date
    Dec 2003
    Location
    Russian Federation
    Posts
    8,356
    No, it should be added to the INPUT chain (not FORWARD), before the last rule.

  3. #3
    Could you give an example? i'm a bit worried when i do something wrong i will wrek my iptables settings.

    tnx

  4. #4
    iptables -I INPUT -m tcp -p tcp --dport 22 -j ACCEPT

Similar Threads

  1. Enabling dropbear sshd ?
    By puppet master in forum WL-500g Q&A
    Replies: 4
    Last Post: 03-07-2007, 18:22
  2. Dropbear SSH server with key authentication
    By Muffe in forum WL-500g Q&A
    Replies: 6
    Last Post: 19-02-2006, 16:37
  3. can't get dropbear to work
    By geethreeforce in forum WL-500g Custom Development
    Replies: 3
    Last Post: 24-10-2004, 00:28
  4. Can't get dropbear to keep the keys
    By mirco in forum WL-500g Q&A
    Replies: 6
    Last Post: 13-09-2004, 14:23
  5. New firmware - dropbear ssh
    By Oleg in forum WL-500g Custom Development
    Replies: 6
    Last Post: 10-03-2004, 11:30

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •