View previous topic :: View next topic |
Author |
Message |
Gyscos n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2007 Posts: 73
|
Posted: Mon Jul 20, 2009 1:46 pm Post subject: [SOLVED] Iptables segfault |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Gyscos n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2007 Posts: 73
|
Posted: Mon Jul 20, 2009 3:28 pm Post subject: |
|
|
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 |
|
![](templates/gentoo/images/spacer.gif) |
Gyscos n00b
![n00b n00b](/images/ranks/rank_rect_0.gif)
Joined: 01 Aug 2007 Posts: 73
|
Posted: Mon Jul 20, 2009 3:36 pm Post subject: |
|
|
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... ![Sad :(](images/smiles/icon_sad.gif) |
|
Back to top |
|
![](templates/gentoo/images/spacer.gif) |
|
|
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
|
|