Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
[SOLVED] Iptables segfault
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Gyscos
n00b
n00b


Joined: 01 Aug 2007
Posts: 73

PostPosted: Mon Jul 20, 2009 1:46 pm    Post subject: [SOLVED] Iptables segfault Reply with quote

Hello !
I installed gentoo on a server, and I'm trying to make it do some port forwarding...
Here is my network config : a router, a server and a simple computer. The router works fine, and right now the server too (i can see it from the outside).
Now I'd like to forward a port from the server to the simple computer, so I don't have to modify the router.

I installed iptables and run :
Code:
iptables -t nat -A PREROUTING -d 192.168.1.40 -p tct --dport 80 -j DNAT --to-dest 192.168.1.51:80


But it just gives me a segmentation fault...

I tried updating everything (last time I ssh-ed to this server was in 2007...), switching to server profile, last kernel sources, I compiled every option in netfilter built-in, no change... iptables works fine with some example from the web, like blocking everthing but a few ports, but not this simple rule...

Any idea how to fix this ? Thanks !

EDIT : okay, stupid me, I just put tct instead of tcp in the line... crap...


Last edited by Gyscos on Mon Jul 20, 2009 8:48 pm; edited 3 times in total
Back to top
View user's profile Send private message
Gyscos
n00b
n00b


Joined: 01 Aug 2007
Posts: 73

PostPosted: Mon Jul 20, 2009 3:28 pm    Post subject: Reply with quote

I'm using kernel 2.6.29-r5, iptables 1.4.3.2.
If anything else is required to understand what is going wrong, please just ask...
Back to top
View user's profile Send private message
Gyscos
n00b
n00b


Joined: 01 Aug 2007
Posts: 73

PostPosted: Mon Jul 20, 2009 3:36 pm    Post subject: Reply with quote

xD
Okay, my fault... I was typing "-p tct" instead of "-p tcp"...
Damn, now it doesn't segfault but just doesn't give what i want... :(
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum